Clean up privacy tasks?


  • 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:


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:


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 < ?", - 1.year).destroy_all

Thank you very much! :+1:

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