Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Curl command to delete a asset folder in aem

Avatar

Adobe Champion

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.

1 Accepted Solution

Avatar

Correct answer by
Adobe Champion

Got the command: 

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

and it worked. Thank you.

View solution in original post

1 Reply

Avatar

Correct answer by
Adobe Champion

Got the command: 

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

and it worked. Thank you.