Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Curl command to delete a asset folder in aem

Avatar

Level 4

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
Level 4

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
Level 4

Got the command: 

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

and it worked. Thank you.