Skip to main content
Level 3
Jan 15, 2025 5:46 AM UTC
Solved

Curl to delete the folder in cloud instance

Hi team,

 

How can I delete this folder '/var/acs-commons/mcp/instances' in AEM Cloud instance with cUrl command.

 

Thanks,

SD

Tethich
TethichAccepted solution
Community Advisor
Jan 15, 2025 10:56 AM UTC

Hi @sdusane 

 

For AEMaaCS you can try something like:

curl -H "Authorizatin: Bearer [token]" -F":operation=delete" https://author-p[ProgramID]-e[EnvironmentID].adobeaemcloud.com/var/acs-commons/mcp/instances

 

Replace token, ProgramID, EnvironmentID with your project specific values. And try.

I recommend to do it on lower envs first, to see how it goes.

6 replies

Tethich
Community Advisor
TethichCommunity AdvisorAccepted solution
Community Advisor
Jan 15, 2025 10:56 AM UTC

Hi @sdusane 

 

For AEMaaCS you can try something like:

curl -H "Authorizatin: Bearer [token]" -F":operation=delete" https://author-p[ProgramID]-e[EnvironmentID].adobeaemcloud.com/var/acs-commons/mcp/instances

 

Replace token, ProgramID, EnvironmentID with your project specific values. And try.

I recommend to do it on lower envs first, to see how it goes.

Translate
SDusaneAuthor
Level 3
Jan 17, 2025 8:31 AM UTC

Hi @tethich ,

 

I was trying this curl but its failing with unauthorised event, can you please check the curl and let me know if its working for you.

 

Thanks.

Translate
Tethich
Community Advisor
Community Advisor
Jan 17, 2025 9:43 AM UTC

I don't have access to a cloud instance at the moment. I see what I can do.

 

But meanwhile, I just observed I have a typo in my example. Instead of

Authorizatin

it should be

Authorization

 

Translate
AmitVishwakarma
Community Advisor
Community Advisor
Jan 19, 2025 5:36 PM UTC

To delete the folder /var/acs-commons/mcp/instances in an AEM Cloud instance using cURL: curl -u <username>:<password> -X DELETE "https://<aem-instance-url>/bin/rep:deleteNode.jsp?path=/var/acs-commons/mcp/instances"

  • Replace <username>, <password>, and <aem-instance-url> with your AEM credentials and instance URL.
  • This deletes the folder and its contents from the JCR repository.
 




Translate
Amit Vishwakarma - Adobe Commerce Champion 2025 | 17x Adobe certified | 6x Adobe SME