Hello Chung,
Firstly, please confirm that you're on AEM 6.3.
Your best bet would be to perform Offline Revision cleanup and then run Datastore Garbage Collection.
Perform offline compaction using steps below
- Go to /system/console/bundles and note down the version of org.apache.jackrabbit.oak-core bundle
- Download the oak-run version matching the version of oak core collected in step above. You can download the oak-run tool from [1]
- Run this command to collect checkpoints and remove unreferences checkpoints -> java -jar oak-run-1.x.x.jar checkpoints <AEM install-folder>/crx-quickstart/repository/segmentstore rm-unreferenced
- Run this command to perform offline compaction -> java -jar oak-run-1.x.x.jar compact <AEM install-folder>/crx-quickstart/repository/segmentstore
Best Regards,
Aneet Arora
[1] Maven Repository: org.apache.jackrabbit » oak-run