Best approach to delete a large folder in aem | Community
Skip to main content
Kishore_Kumar_
Level 9
May 7, 2020
Solved

Best approach to delete a large folder in aem

  • May 7, 2020
  • 3 replies
  • 6804 views

Hi team,

 

May I know the best approach we can use to delete a large folders in aem.

 

1. Deleting from crxde directly. Or

2. Through curl command.

 

  • Or any better approach than these two.
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 user05162

I would not recommend either process as there might be references to other projects/pages/nodes which you might remove not knowing.

 

The best approach will be to go to Touch UI and delete it from there. You can look into deleting at a parent level folder if you would like to do it in one go. But this process will make sure all references are properly removed and no issues are observed later.

3 replies

BrijeshYadav
Level 5
May 8, 2020
Theo_Pendle
Level 8
May 8, 2020

Hi @kishore_kumar_ ,

I'm not an AEM DAM expert but I'm going to give my opinion.

Many things happen when you delete an Asset. I assume those processes are triggered by listeners on the JCR but I can't guarantee that that's the case.

For example, if you choose to delete an asset via the TouchUI, you benefit from a reference-check that makes sure you are not deleting assets that are in use. Here is an example:

If you haven't already, i strongly suggesting testing this first using the delete dialog or the References rail.

However, if you are just deciding between manual deletion in CRX DE vs deletion by cURL, it's the same thing. In both cases you will send a HTTP request to AEM to delete a node. The only difference is that in CRX DE you have the chance to change your mind before you commit XD

user05162Adobe EmployeeAccepted solution
Adobe Employee
May 8, 2020

I would not recommend either process as there might be references to other projects/pages/nodes which you might remove not knowing.

 

The best approach will be to go to Touch UI and delete it from there. You can look into deleting at a parent level folder if you would like to do it in one go. But this process will make sure all references are properly removed and no issues are observed later.