Skip to content

SQSClient.delete_message_batch

rboto-sqs==0.4.0 · Service index · Types

Model summary (excerpt): Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage . The result of the action on each message is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200 .

Install and imports

python -m pip install "rboto[sqs]==0.4.0"
from rboto import SQSClient
from collections.abc import Sequence
from rboto_sqs.types import (
    DeleteMessageBatchOutput,
    DeleteMessageBatchRequestEntry,
)

Signature

async def delete_message_batch(
    *,
    queue_url: str,
    entries: Sequence[DeleteMessageBatchRequestEntry],
) -> DeleteMessageBatchOutput: ...

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.
entries Yes Lists the receipt handles for the messages to be deleted.

Output

DeleteMessageBatchOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
successful list[DeleteMessageBatchResultEntryOutput] Always present DeleteMessageBatchResultEntryOutput
failed list[BatchResultErrorEntryOutput] Always present BatchResultErrorEntryOutput

| 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.

DeleteMessageBatchOutput, DeleteMessageBatchRequestEntry

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:

BatchEntryIdsNotDistinctError, EmptyBatchRequestError, InvalidAddressError, InvalidBatchEntryIdError, InvalidSecurityError, QueueDoesNotExistError, RequestThrottledError, TooManyEntriesInBatchRequestError, UnsupportedOperationError.

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

Service guide · Pinned model