def _do_remove(self, number):
        try:
            number = int(number)
        except __HOLE__:
            raise AdminCommandError(_("<number> must be a number"))
        with self.env.db_transaction:
            model.Ticket(self.env, number).delete()
        printout(_("Ticket #%(num)s and all associated data removed.",
                   num=number))
dataset/ETHPy150Open edgewall/trac/trac/ticket/admin.py/TicketAdmin._do_remove