I am looking for a way to delete all file uploads server wide as I was using the server storage option and now we’re moving to Webdav and I’d like to keep the server size as small as possible. I’ve seen in Mongodb that there are 3 collections that probably are the target ones: rocketchat_uploads, rocketchat_uploads.chunks and rocketchat_uploads.files.
I was wondering if there’s an option in Rocket Chat to delete all files from the app / CLI / etc or if not, whether dropping the 3 collections could lead to a problem.
- Version of Rocket.Chat Server: 4.0.0
- Operating System: Ubuntu 20.04
- Deployment Method: snap
- Number of Running Instances: 1
- DB Replicaset Oplog:
actual oplog size
‘Wed Oct 06 2021 11:39:41 GMT+0200 (Central European Summer Time)’
- NodeJS Version: v12.18.4
- MongoDB Version: 4.0.20 / mmapv1 (oplog Enabled)
- Proxy: nginx
- Firewalls involved: no