07-16-2019 11:45 AM
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
07-17-2019 03:58 AM
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
07-17-2019 03:58 AM
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
07-25-2019 06:13 AM
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
07-25-2019 07:31 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.