Guy Rutenberg

Keeping track of what I do

Deleting a Range of Tickets in Trac

with one comment

Recently the Open Yahtzee website which runs Trac has fallen victim to several spam attacks. The spammers submit large number of tickets containing links to various sites. This post was written mainly to allow me to copy paste a command to delete a range of tickets at once, but I thought it may be useful to others as well.

for i in `seq FROM TO`; do trac-admin TRAC_ENV ticket remove $i ; done

Replace FROM and TO with the first and last ticket numbers of the range accordingly. TRAC_ENV should be the path to your project’s environment.

For example:

for i in `seq 9 32`; do trac-admin www.openyahtzee.org/ ticket remove $i ; done
Share and Enjoy:
  • del.icio.us
  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google Bookmarks
  • Simpy

Written by Guy

January 8th, 2009 at 11:28 pm

Posted in Tips

Tagged with

One Response to 'Deleting a Range of Tickets in Trac'

Subscribe to comments with RSS or TrackBack to 'Deleting a Range of Tickets in Trac'.

  1. In the few days since I wrote the draft of the post until I published it, the Open Yahtzee site got spammed more often and ever. So, finally I installed the SpamFilter plugin for Trac, and enabled the Akismet filtering, which seems to work (at least for now).

    Guy

    8 Jan 09 at 23:31

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">