deleting repository in AEM 6.2 | Community
Skip to main content
Level 2
September 27, 2021
Solved

deleting repository in AEM 6.2

  • September 27, 2021
  • 2 replies
  • 1885 views

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.

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Raja-Karuppsamy

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

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


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.

2 replies

Raja-Karuppsamy
Community Advisor
Community Advisor
September 27, 2021

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?lang=en

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

 

Snow123Author
Level 2
September 27, 2021

Hi @raja-karuppsamy ,

 

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

Snow123Author
Level 2
September 27, 2021

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

 


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

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

Manu_Mathew_
Community Advisor
Community Advisor
September 27, 2021

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