All Products
Search
Document Center

DeleteQueue

Last Updated: Jul 23, 2019

Description

This interface is used to delete a created message queue.

Note:

Be cautious when using this interface. Once the queue is deleted, all messages in the queue are deleted and cannot be recovered.

Request

A request mainly includes the following parts:

  • Request line

    DELETE /queues/$queueName HTTP/1.1

  • Special Request Header

    None. See “Public Request Headers”.

  • Request Body

    None.

Response

The returned message includes 3 parts: returned status line, HTTP header, and message body.

  • HTTP Status Code

    HTTP/1.1 204 No Content

  • Special Response Header

    None. See “Public Return Headers”.

  • Response Body

    None.

Special Error

This operation has no special errors and involves mainly permission verification errors and parameter setting errors. For details, refer to MNS error response codes.

Request example:

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

Return example:

  1. HTTP/1.1 204 NoContent
  2. x-mns-request-id: 512B2A634403E52B1956133E
  3. x-mns-version: 2015-06-06