Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

Dam data deletion

Avatar

Level 6

Hi All,

We are planning to migrate crx2 to Oak. it toook more time so decided to remove DAM folders before migration, DAM consists of more and more sub folders,

I need to delete /content/dam entire folders. Once i am doing  getting "could not save - 401 error or error -1".Please let me know how to delete dam contents.

For  ex: If any folder sizse is big , i am getting the below error.Only JPG or image files are deleting and saving properly. Any curl command or something to perform this

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 10

You can delete assets by following this doc topic:

https://docs.adobe.com/docs/en/cq/5-6-1/dam/dam_documentation.html#Deleting Assets

(This is the correct answer on how to delete DAM files. For large data sets - there may be other issues)

Lösung in ursprünglichem Beitrag anzeigen

7 Antworten

Avatar

Level 4

It May use for you.

Please refer.

https://gist.github.com/sergeimuller/2916697

Avatar

Level 10

You are following the standard way of deleting the assets - the question is why are you getting these errors. 

What does the log file state? 

Avatar

Employee Advisor

You can create a package with empty contents under dam path you want too delete. And then install the package to delete everything. Otherwise you can try deleting using the curl command -  curl -X DELETE http://localhost:4502/path/to/node -u admin:admin

Avatar

Level 6

Hi Smac,

Yes, i navigated to CRXDE and selected /content/dam/TEST folder .Right click and delete,Getting error as i mentioned same.

In our instances, we have 600 GB of datas . More images and videos. I guess if i delete folders which is more size, triggering error. Something need to change on IO tmp dir size.

 

Also 1 more query , while doing migration using crx2oak.jar file, is this will do any activity on /tmp location.

I am not able to delete big folder under DAM , so i moved to /tmp folder before migration, This will have any impact on migration or just jar will skip this /lib location.

Avatar

Korrekte Antwort von
Level 10

You can delete assets by following this doc topic:

https://docs.adobe.com/docs/en/cq/5-6-1/dam/dam_documentation.html#Deleting Assets

(This is the correct answer on how to delete DAM files. For large data sets - there may be other issues)

Avatar

Level 6

Hi Smac,

While saving i am getting [img]crxde.JPG[/img]

Or sometimes i am getting forbidden error . 

Avatar

Level 6

I have already tried and getting error

curl -X DELETE http://localhost:4502/tmp -u admin:admin

<html>
<head>
<title>File not found</title>
</head>
<body>
    <p>A custom errorhandler for 404 responses</p>
</body>
</html>