Delete functionality in queue