implement the deletion function for tickets