amqp-delete-queue(1)

amqp-delete-queue1

Delete a queue from an amqp server

Usage

amqp-delete-queue [OPTION ...] -q queue name

Overview

amqp-delete-queue deletes a queue from an AMQP server, and exits after printing to standard output the number of messages that were in the queue at the time of its deletion.

Options

-q, --queue=queue name

The name of the queue to delete.

Exit status

If the queue was successfully deleted, the exit status is 0. If an error occurs, the exit status is 1.

Examples

Delete the queue “myqueue” at a moment when it has 123 messages waiting on it:

$ amqp-delete-queue -q myqueue
123

Releases

8 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10–12
  5. 13
  6. Arch

-q until Debian 12 (Bookworm).

Author

The RabbitMQ Team <<[email protected]>>

From librabbitmq-c 0.16.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.