Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retention Policy not deleting Threads #19731

Closed
EnCz opened this issue Dec 1, 2020 · 3 comments · Fixed by #32485
Closed

Retention Policy not deleting Threads #19731

EnCz opened this issue Dec 1, 2020 · 3 comments · Fixed by #32485

Comments

@EnCz
Copy link

EnCz commented Dec 1, 2020

Description:

It seems like the retention policy doesn't delete threads even though administration is configured correctly.

Our Retention Policy settings in Admin:
image
image

Steps to reproduce:

  1. Create new private room
  2. Open Room-Info
  3. Click Edit -> Prune
  4. Tick "Automatically prune old messages" and "Override global retention policy"
  5. Set "Maximum message age in days (default: 30)" to 1
  6. Click "Save"
  7. Write something in this Channel
  8. Answer with Thread
  9. Wait 1 day

Expected behavior:

Thread gets deleted

Actual behavior:

Thread doesn't get deleted.

Server Setup Information:

  • Version of Rocket.Chat Server: 3.9.0
  • Deployment Method: docker
@EnCz EnCz changed the title Retention Policy not deleteing Threads Retention Policy not deleting Threads Dec 1, 2020
@cprice-kgi
Copy link
Contributor

cprice-kgi commented Dec 2, 2020

check my comment over here:
#19730

I think it will help point you in the right direction. Short version: rooms with custom retention policies won't be processed unless you perform a workaround. There's an issue with the initial setting of a room field that's necessary in order for them to be picked up.

@TheDom42
Copy link

Same problem here!
We even performed the workaround described by @cprice-kgi (which finally triggered the correct pruning for regular messages).
However, threads older than the maxAge are still there. It would also be great to have a setting for the thread pruning in the room info pruning section.

@Govi59
Copy link

Govi59 commented Oct 26, 2021

Similar to #18738 and #22384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants