added functionality to delete old queues