Skip to content

SQSClient.delete_message

rboto-sqs==0.4.0 · Service index · Types

Model summary (excerpt): Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message ( not the MessageId which you receive when you send the message). Amazon SQS can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Amazon SQS automatically deletes messages left in a queue longer than...

Install and imports

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

Signature

async def delete_message(
    *,
    queue_url: str,
    receipt_handle: 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 Amazon SQS queue from which messages are deleted. Queue URLs and names are case-sensitive.
receipt_handle Yes The receipt handle associated with the message to delete.

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, InvalidIdFormatError, InvalidSecurityError, QueueDoesNotExistError, ReceiptHandleIsInvalidError, RequestThrottledError, UnsupportedOperationError.

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

Service guide · Pinned model