Expand my Community achievements bar.

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.