Queues delete

Open in

Use the ably queues delete command to delete a queue.

Synopsis

ably queues delete <queue-name-or-id> [options]

Arguments

queue-name-or-id
Required

The name or ID of the queue to delete.

Options

--app

The app ID that the queue belongs to. If not specified, the currently selected app is used.

--force | -f

Skip the confirmation prompt and delete the queue immediately. Required when using --json.

--json

Output results as compact JSON. Mutually exclusive with --pretty-json.

--pretty-json

Output results in formatted JSON. Mutually exclusive with --json.

--verbose | -v

Enable verbose logging. Can be combined with --json or --pretty-json.

Examples

Delete a queue by name:

ably queues delete "my-queue"

Delete a queue for a specific app:

ably queues delete "my-queue" --app "My App"

Delete a queue without a confirmation prompt:

ably queues delete "my-queue" --force

Delete a queue and output the result in JSON format:

ably queues delete "my-queue" --json

See also

  • Queues — Explore all ably queues commands.
  • CLI reference — Full list of available commands.