Amazon Web ServicesAmazon SQS 消息队列 API
清空队列
删除队列中可用和正在传输的消息;此操作不可逆。 官方英文详细说明: <p>Deletes available messages in a queue (including in-flight messages) specified by the <code>QueueURL</code> parameter.</p> <important> <p>When you use the <code>PurgeQueue</code> action, you can't retrieve any messages deleted from a queue.</p> <p>The message deletion process takes up to 60 seconds. We recommend waiting for 60 seconds regardless of your queue's size. </p> </important> <p>Messages sent to the queue <i>before</i> you call <code>PurgeQueue</code> might be received but are deleted within the next minute.</p> <p>Messages sent to the queue <i>after</i> you call <code>PurgeQueue</code> might be deleted while the queue is being purged.</p>
Amazon Simple Queue Service 的完整 23 个官方 action;保留 AWS JSON 1.0、AWS Query 兼容性、SigV4 与区域 Endpoint 规则。Hub 提供文档和本地 SDK/CLI,不代理队列调用。
请求
- operationId
PurgeQueue- 服务器
https://sqs.{Region}.{PartitionResult#dnsSuffix}- 认证
- awsSigV4
请求参数
无 URL、查询或 Header 参数。
Body 参数
string必填
响应
200
object
成功响应。
error
string
Declared service error
{}