added ‘delete’ function for deleting a queue