Folder deletion fails and folder becomes inaccessible in AEM Assets
Deleting a large folder in Adobe Experience Manager (AEM) Assets can fail when the folder contains many nested assets and subfolders. The folder remains in the repository but becomes empty or inaccessible through the Assets interface. To fix this, divide the deletion into smaller operations, monitor each asynchronous job, and delete the folder after its contents are removed.
Description description
Environment
- Adobe Experience Manager Assets
- Large DAM folders containing nested assets and subfolders
- AEM Assets interface
Issue/Symptoms
-
You can’t delete a large folder in AEM Assets.
-
You see the folder remain in the repository, but you can’t access or delete it through the Assets interface.
-
You see the folder appear empty or inaccessible after the failed deletion attempt.
-
You see an error similar to:
code language-none org.apache.jackrabbit.oak.plugins.document.DocumentStoreException: This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore. -
You encounter the issue more frequently when the folder contains a large number of assets and nested subfolders.
Cause
Deleting a large folder containing many nested assets in one operation creates a resource-intensive asynchronous deletion job. If the operation doesn’t complete, the folder can remain visible but inaccessible, with some or all of its contents still present.
Resolution resolution
Follow the steps below to resolve the issue:
- Avoid deleting a large folder containing many nested assets or subfolders in a single operation.
- Identify the subfolders or smaller branches within the target folder.
- Delete the subfolders incrementally, one at a time, through the AEM Assets interface.
- After each batch deletion, monitor the progress in the Jobs console and verify that the operation completes successfully before proceeding with the next batch.
- If the folder appears empty or inaccessible after a failed deletion, wait for any temporary locks to clear before retrying.
- If deletion continues to fail after multiple incremental attempts, contact Adobe Support for further assistance.
- After completing all incremental deletions, verify that the folder and its contents are no longer visible in the AEM Assets interface.