Amazon Simple Queue Service

2014/12/08 - Amazon Simple Queue Service - 1 new api methods

PurgeQueue (new) Link ΒΆ

Deletes the messages in a queue specified by the queue URL .

Warning

When you use the PurgeQueue API, the deleted messages in the queue cannot be retrieved.

When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling PurgeQueue will be deleted; messages sent to the queue while it is being purged may be deleted. While the queue is being purged, messages sent to the queue before PurgeQueue was called may be received, but will be deleted within the next minute.

Request Syntax

client.purge_queue(
    QueueUrl='string'
)
type QueueUrl

string

param QueueUrl

[REQUIRED]

The queue URL of the queue to delete the messages from when using the PurgeQueue API.

returns

None