QueueDelete removes the queue from the server including all bindings then purges the messages based on server configuration, returning the number of messages purged.
When ifUnused is true, the queue will not be deleted if there are any consumers on the queue. If there are consumers, an error will be returned and the channel will be closed.
When ifEmpty is true, the queue will not be deleted if there are any messages remaining on the queue. If there are messages, an error will be returned and the channel will be closed.
When noWait is true, the queue will be deleted without waiting for a response from the server. The purged message count will not be meaningful. If the queue could not be deleted, a channel exception will be raised and the channel will be closed.
QueueDelete is referenced in 8 repositoriesgithub.com/alphagov/govuk_crawler_worker
- 4 references in health_check_test.go
- 4 references in queue/queue_connection_test.go
- 2 references in queue/queue_manager_test.go
- 1 reference in workflow_test.go
- 1 reference in rabbitmq-http.go