Dam data deletion | Community
Skip to main content
October 16, 2015
Solved

Dam data deletion

  • October 16, 2015
  • 7 replies
  • 2156 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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)

7 replies

narayanank84409
October 16, 2015

It May use for you.

Please refer.

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

smacdonald2008
October 16, 2015

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? 

Kunal_Gaba_
October 16, 2015

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

Gokul2011Author
October 16, 2015

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.

smacdonald2008
smacdonald2008Accepted solution
October 16, 2015

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)

Gokul2011Author
October 16, 2015

Hi Smac,

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

Or sometimes i am getting forbidden error . 

Gokul2011Author
October 16, 2015

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>