Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

deleting repository in AEM 6.2

Snow123
Level 2
Level 2

Hi all,

 

I have to clean up the repository of AEM publishers. Does it need downtime? May I know deleting repo impact the current data? How can I clean up repo.

aem_repo.JPG

 

Thanks.

1 Accepted Solution
Raja-kp
Correct answer by
Level 7
Level 7

Hi @Snow123 - Understood. Please perform the Datastore garbage collection (when the instance is running) and Offline compaction (recommend to perform during non-business hours) and check the repository size once. Un-referenced files will be deleted from the repository.

View solution in original post

6 Replies
Raja-kp
Level 7
Level 7

Hi - To cleanup the repository ,please perform the maintenance activity as below:

Data store Garbage collection - When instance up and running ( No downtime)

Offline compaction - need to bring down the instance to perform this.

 

There will be NO impact to your repository while you perform this activity.

 

Please refer these link :

 https://experienceleague.adobe.com/docs/experience-manager-cloud-service/operations/maintenance.html...

https://helpx.adobe.com/experience-manager/kb/AEM6-Maintenance-Guide.html

 

Snow123
Level 2
Level 2

Hi @Raja-kp ,

 

Thanks for the information. Can I just directly delete *.bak folder inside that segmentstore?

Raja-kp
Level 7
Level 7

Can you please share the screenshot of directory name under segmenstore ?

 

Snow123
Level 2
Level 2

D:/publish/crx-quickstart/repository/segmentstore.

You can also see a file ended with *tar.bak in the screenshot mentioned in my question.

Raja-kp
Correct answer by
Level 7
Level 7

Hi @Snow123 - Understood. Please perform the Datastore garbage collection (when the instance is running) and Offline compaction (recommend to perform during non-business hours) and check the repository size once. Un-referenced files will be deleted from the repository.

ManuMathew1994
Level 4
Level 4

Hi @Snow123 

 

you can use Offline compaction:

Offline compaction:
sudo java -jar oak-run-1.38.0.jar checkpoints /Users/Documents/myfolder/crx-quickstart/repository/segmentstore
 
sudo java -jar oak-run-1.38.0.jar checkpoints /Users/Documents/myfolder/crx-quickstart/repository/segmentstore rm-all