Best approach to delete a large folder in aem

Avatar

Avatar
Validate 1
Level 2
kishorek1264980
Level 2

Likes

6 likes

Total Posts

44 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
kishorek1264980
Level 2

Likes

6 likes

Total Posts

44 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile
kishorek1264980
Level 2

07-05-2020

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

08-05-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.

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

238 likes

Total Posts

251 posts

Correct reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

238 likes

Total Posts

251 posts

Correct reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
Theo_Pendle
MVP

08-05-2020

Hi @kishorek1264980 ,

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:

theop76211228_0-1588958093539.png

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

Avatar

Avatar
Springboard
Level 5
BrijeshYadav
Level 5

Likes

59 likes

Total Posts

102 posts

Correct reply

19 solutions
Top badges earned
Springboard
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Springboard
Level 5
BrijeshYadav
Level 5

Likes

59 likes

Total Posts

102 posts

Correct reply

19 solutions
Top badges earned
Springboard
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
BrijeshYadav
Level 5

08-05-2020