Deletes a queue.

Name Value
API DeleteQueue
Action mns:DeleteQueue
Resource acs:mns:$region:$accountid:/queues/$queueName
Notice After a queue is deleted, all messages in the queue are deleted and cannot be restored. Proceed with caution.

Request

Each request consists of the following parts:

  • Request line

    DELETE /queues/$queueName HTTP/1.1

  • Operation-specific request headers

    None. For more information about common request headers, see Common parameters.

  • Request Body

    None.

Response

Each response consists of the following parts:

  • HTTP Status Code

    HTTP/1.1 204 No Content

  • Operation-specific response headers

    None. For more information about common response headers, see Common parameters.

  • Response Body

    None.

Examples

Sample requests

DELETE /queues/$queueName  HTTP/1.1
Host: $AccountId.mns.cn-hangzhou.aliyuncs.com
Date: Wed, 08 Mar 2012 12:00:00 GMT
x-mns-version: 2015-06-06
Authorization: MNS 15B4D3461F177624206A:xQE0diMbLRepdf3YB+FIEXAMPLE=

Sample success responses

HTTP/1.1 204 No Content
x-mns-request-id: 512B2A634403E52B1956133E
x-mns-version: 2015-06-06          

Special Error

No operation-specific errors occur when you call this operation. Common errors include unauthorized access and invalid parameters. For more information, see Error codes.