refactor deleting tickets