Skip to main content
Level 2
January 7, 2022
Solved

Curl command to delete a asset folder in aem

I am trying to run a batch script to delete a large list of unwanted image folders from dam.

Can someone hep me with a sample curl command to delete a AEM folder using curl command?

 

I tried using the below

curl -u admin:admin -X DELETE http://localhost:4502/assets.html/content/dam/test-path/product-assets/test

 

But it gives, file not found, though it is available in DAM.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
P_V_NairAccepted solution
Level 2
January 7, 2022

Got the command: 

curl -u admin:admin -X DELETE http://localhost:4502/content/dam/test/product-assets/test

and it worked. Thank you.

1 reply

P_V_NairAuthorAccepted solution
Level 2
January 7, 2022

Got the command: 

curl -u admin:admin -X DELETE http://localhost:4502/content/dam/test/product-assets/test

and it worked. Thank you.

Translate