Skip to content

SQSClient.purge_queue

rboto-sqs==0.4.0 · Service index · Types

Model summary (excerpt): Deletes available messages in a queue (including in-flight messages) specified by the QueueURL parameter. When you use the PurgeQueue action, you can't retrieve any messages deleted from a queue. The message deletion process takes up to 60 seconds. We recommend waiting for 60 seconds regardless of your queue's size. Messages sent to the queue before you call PurgeQueue might be received but...

Install and imports

python -m pip install "rboto[sqs]==0.4.0"
from rboto import SQSClient

Signature

async def purge_queue(
    *,
    queue_url: str,
) -> None: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
queue_url Yes The URL of the queue from which the PurgeQueue action deletes messages. Queue URLs and names are case-sensitive.

Output

None.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

—

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_sqs.exceptions:

InvalidAddressError, InvalidSecurityError, PurgeQueueInProgressError, QueueDoesNotExistError, RequestThrottledError, UnsupportedOperationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model