Allow queues to be deleted, it fixes #3037