RocketChat / feature-requests

This repository is used to track Rocket.Chat feature requests and discussions. Click here to open a new feature request.
21 stars 9 forks source link

[FEATURE] no way to delete exported UserData Files #718

Open slimlv opened 3 years ago

slimlv commented 3 years ago

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:

  1. Request User Data Export

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:

avimanyu786 commented 3 years ago

As of now, it still seems to persist on the latest version.

ulope commented 2 years ago

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.

railsmechanic commented 2 years ago

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...

doktormd5 commented 2 years ago

Possible to use mongoDB shell:

use parties
db.rocketchat_userDataFiles.chunks.remove( { } )
db.runCommand({ compact: 'rocketchat_userDataFiles.chunks', force: true });