Clarification about 'Only delete files' option in Retention Policy settings


In documentation under ‘Only delete files’, it mentions that when selected along with ‘Do not prune pinned messages’, only unpinned files would be deleted. Does the same apply to ‘Do not prune discussion messages’ and ‘Do not prune Threads’ being selected along with ‘only delete files’?

If I select ‘Only delete files’ and ‘Do not prune discussion messages’, will only files be pruned from discussions? Or is everything exempt from pruning if it is in a discussion?

What I would like to do is delete only files from discussions and threads, but leave the messages without files alone. It is unclear to me from reading the documentation and I do not want to accidentally delete valuable information from our RC instance.

Server Setup Information

  • Version of Rocket.Chat Server: 6.4.2
  • Operating System: Ubuntu 18.04.3
  • Deployment Method: snap
  • NodeJS Version: v14.21.2
  • MongoDB Version: 5.0.15 / wiredTiger (oplog Enabled)
  • Proxy: nginx