Apply the latest Oak Cumulative Fix Pack for AEM 6.3.
Asset deletion hangs and takes more than a minute | AEM 6.3
When deleting assets in the /assets.html Touch UI, the UI hangs and takes more than a minute to complete the operation.
This is a known product bug, GRANITE-18998, the cause is that the query limit is hit when executing this query:
SELECT * FROM [nt:base] WHERE (ISSAMENODE('/content/dam/adobe-test/jpg3186.jpg') OR ISDESCENDANTNODE('/content/dam/adobe-test/jpg3186.jpg')) AND [cq:lastReplicationAction] = 'Activate'
Add this JVM parameter to the CQ_JVM_OPTS variable in the AEM crx-quickstart/bin/start script:
Or if you are not able to apply the Oak fix, as workaround:
Log in to http://aem-host:port/crx/de/index.jsp as admin.
Click Save All.
If propertyIndex was already set to true, then set /oak:index/ntBaseLucene/indexRules/nt:base/properties/cqLastReplicationAction/index=false.
Click Save All again.
Note: There is no need to reindex after setting this property.