Added delete ticket function and api