Delete a Range of Ticket by Ticket ID

Infos:

  • Used Zammad version: 5.3.0
  • Used Zammad installation type: (Package)
  • Operating system: Ubuntu
  • Browser + version: Latest MS Edge

Expected behavior:

  • To Remove a range of tickets by the Ticket ID from the rails console

What Happened

My mail stopped receiving so i configured it again. it started pulling previously emails and created dublicated tickets. i need to delete those tickets i have the ticket range and followed this

range = 126443…126743

number_array = range.to_a
Ticket.where(id: number_array).destroy_all

put it did not seem to work. appreciate any help on this.

Note: found the issue in the ticket ID the first two digits turned out the system ID I omitted the first two digits from my script and it worked

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