Deletes the queue specified by the queue URL. Normally, a queue must be empty before you can delete it. However, you can set the request parameter ForceDeletion to true to force the deletion of a queue even if it's not empty.
![]() | Caution |
|---|---|
Use the |
Once you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.
The following table lists the special request parameters the action uses (in addition to the common request parameters listed in Common Request Parameters).
| Name | Description | Required |
|---|---|---|
| When set to Type: Boolean Default: Valid values: | No |
The response contains no special elements besides the common elements listed in The Structure of a Response.
The following table lists the special errors the action returns (in addition to the common errors listed in Common Errors).
| Error | Description | HTTP Status Code |
|---|---|---|
AWS.SimpleQueueService.NonEmptyQueue | Queue not empty. | 400 |
The following example Query request deletes the specified queue even if it's not empty.
http://queue.amazonaws.com/A29E9VSPHGOG23/queue1 ?Action=DeleteQueue &AWSAccessKeyId=0GS7553JW74RRM612K02EXAMPLE &Version=2007-05-01 &Expires=2007-05-12T12:00:00Z &Signature=CN2SbNq%2B2Vw1W3lbc7wpM5gzDHEXAMPLE= &ForceDeletion=true