add function for deleting a queue