AnsweredAssumed Answered

Problem with delete big folder

Question asked by jmal on Nov 28, 2018
Latest reply on Dec 5, 2018 by francesco.fornasari

Hi,

 

I'm using Alfresco Enterprise 5.2.3, and I want delete folder with 50.000 - 200.000 documents inside. 

I tried delete by public rest API:

alfresco/api/-default-/public/alfresco/versions/1/nodes/30fa7bab-5c3a-46dc-ac32-51eac80008f6?permanent=false

And this is endless query. After few hours in server logs I saw Java heap space error. 

Then I wrote custom webscript which call deleteNode method from NodeService, effect was the same.

 

And my question is, how can I delete that folder without any errors and exception, and in a finite time?

Outcomes