directy empty the queue instead of deleting element by element