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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Curl command to delete a asset folder in aem

Avatar

Level 6

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 6

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

0 Replies

Avatar

Correct answer by
Level 6

Got the command: 

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

and it worked. Thank you.