How to delete tickets with certain tag?

I like to delete all tickets which are tagged spam.
How can I do that?
Ticket.find_by(tags: "spam") was my first guess, but I was wrong.
Thank you!

Infos:

  • Used Zammad version: 6.3.1-1720005266.58ae1e03.bookworm
  • Used Zammad installation type: package
  • Operating system: Debian 12

We use the Scheduler for this, so this runs automatically.

3 Likes

Oh, I had this in my old installation and it used to work.
Don’t ask me, why I did not migrate this to my current installation and even forgot about it :slight_smile:

Still curious how to do that on the console, but not urgent.

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