Open slimlv opened 3 years ago
As of now, it still seems to persist on the latest version.
This is becoming quite a nuisance for us.
In our instance the userDataFiles.chunks
collection has grown to 20GB+ making backups unnecessarily slow and painful.
For me this is a huge problem, too. In our instance the userDataFiles.chunks
collection has 142GB vs. rocketchat_uploads.chunks
collection with just 4.4GB. This make backups unnecessarily slow, painful and storage intensive.
Is it possible to do the cleanup via mongoDB shell? I don't have the courage to simply delete all entries of the collection...
Possible to use mongoDB shell:
use parties
db.rocketchat_userDataFiles.chunks.remove( { } )
db.runCommand({ compact: 'rocketchat_userDataFiles.chunks', force: true });
Description:
rocketChat has feature to export UserData (for example via Request Data Download) There is no way to remove the files generated. Dedicated Retention policy for UserDataFiles should be present, API to remove the files should be present, User interface to manage UserDataFiles should be present.
Steps to reproduce:
Expected behavior:
Any way to remove generated file - by UI/api/retention policy
Actual behavior:
Generated files stay forever
Server Setup Information:
Client Setup Information
Additional context
Relevant logs: