I have to clean repository, so I try to delete top-level folder, which contains thousands of folders and documents.
After about a minute of popup window "Please, wait, Files being deleted" another popup window shows "Could not delete item".
The log contains
2019-07-16 18:41:04,741 INFO [webscripts.connector.RemoteClient] [http-apr-8181-exec-21] Exception calling (POST) http://localhost:8181/alfresco/s/slingshot/doclib/action/files?alf_method=delete&alf_ticket=TICKET_09ccfcd64c65f8c59ba8a7957077cbf480858d2e
2019-07-16 18:41:04,742 INFO [webscripts.connector.RemoteClient] [http-apr-8181-exec-21] Error status 408 Read timed out
java.net.SocketTimeoutException: Read timed out
Before this I have tried to clean folder by java script on folder rule with the same error.
https://community.alfresco.com/thread/242348-error-status-408-read-time-out-executing-script
Solved! Go to Solution.
Deleting thousands of folder / files at the same time is not recommended in Alfresco. The main problem is that every operation is subscribed to the same database transaction, so the server will freeze (this means that 408) before completing the removing operation as transactional cache and other resources are full.
The alternative is to create a process to remove nodes in batches, like this project:
GitHub - keensoft/MassiveDelete: A simple Alfresco massive deletion batch
Deleting thousands of folder / files at the same time is not recommended in Alfresco. The main problem is that every operation is subscribed to the same database transaction, so the server will freeze (this means that 408) before completing the removing operation as transactional cache and other resources are full.
The alternative is to create a process to remove nodes in batches, like this project:
GitHub - keensoft/MassiveDelete: A simple Alfresco massive deletion batch
The proposed solution is complete, but I have additional question, may I use this solution instead of trashcan cleaner?
As far as I understand REST Delete
s/slingshot/doclib/action/file/node/archive/SpacesStore/{uuid}
should completely remove document from trashcan, should it?
Besides, should I clean versionstore by REST Delete
s/slingshot/doclib/action/file/node/workspace/version2Store/{uuid}
The purpose is to completely remove information from repository
I prefer to leave Alfresco be aware of that.
Probably this diagram can help to understand what happens when a node is removed:
GitHub - keensoft/alfresco-deleted-content-store-cleaner: Alfresco Deleted Content Store Cleaner job
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.