Cleanup /opt/rhodecode/store

Dear Support,

Currently the /opt/rhodecode/store/ directory contains around 1380 subdirectories. As far as I can see these are the previous (and current) rhodecode server directories.
Is there a way to automatically clean them? (Some cleanup command of the rhodecoda-api, maybe?)
If not, how to identify the directories that are used currently?

Tamas

Please check this: https://docs.rhodecode.com/RhodeCode-Control/tasks/admin_tasks/nix-store-cleanup.html

Hi Marcin,

Kind of scary this hard core ‘rm -rf …’ stuff. I would expect an ‘rcontrol clean-store’ solution instead :).

Anyway, I probably won’t delete those directories, at least not at the first place. But before saving all those ~1500 directories, I would like to know how to find out which directories are currently active?
So what are those out of the 1500 that is used in the current instance of Rhodecode.

Marcin,

The steps on the linked page cleared my existing mysql configuration…
I told you it is dangerous :grimacing:

For anyone reading this later:
DO NOT ENTER YOUR CURRENT DATABASE CONFIGURATION WHEN INSTALLING VCSSERVER AND COMMUNITY (STEP 6.). IT WILL WIPE YOUR EXISTING DATABASE!