Curl command to delete a asset folder in aem | Community
Skip to main content
Adobe Champion
January 7, 2022
Solved

Curl command to delete a asset folder in aem

  • January 7, 2022
  • 1 reply
  • 2082 views

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.
Best answer by P_V_Nair

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_NairAdobe ChampionAuthorAccepted solution
Adobe Champion
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.