Clean up privacy tasks?

Infos:

  • Used Zammad version: 5.3.0
  • Used Zammad installation type: package
  • Operating system: Ubuntu 20.03
  • Browser + version: Microsoft Edge

Hey guys,

I have a little question. Is there a clean up job to delete old privacy tasks?

I deleted many old customers (over 200) and have a large list of completed tasks in zammad.

Thanks for a short answer :relaxed:

Hey,

Zammad’s data privacy tasks currently are not cleaned up.
I thought it would do it, but oh well - I’ve created an issue for that - no guarantee that the product management will accept this approach: DataPrivacy tasks never are cleaned up · Issue #4437 · zammad/zammad · GitHub

You could use the following on the rails console on your own descretion:

dangerzone

I did understand that this is a potential dangerous operation. I do have a backup.

Below will remove Privacy tasks that are older than a year.

DataPrivacyTask.where(state: 'completed').where("created_at < ?", Time.now - 1.year).destroy_all
2 Likes

Thank you very much! :+1:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.