delete method in queue