Deletes a topic.

Description

You can call this operation to delete a topic.

Notice After a topic is deleted, all messages in the topic and all subscriptions to the topic are deleted and cannot be restored. Proceed with caution.

Request

Each request consists of the following parts:

  • Request line

    DELETE /topics/$TopicName HTTP/1.1

  • Operation-specific request headers

    None.

  • Request Body

    None.

Response

Each response consists of the following parts:

  • HTTP Status Code

    HTTP/1.1 204 No Content

    If the topic is deleted, the 204 No Content error is returned.

  • Operation-specific response headers

    None.

  • Response Body

    None.

Examples

Sample requests

DELETE /topics/$TopicName HTTP/1.1
Host: $AccountId.mns.cn-hangzhou.aliyuncs.com
Date: Tue, 08 Dec 2015 06:05:08 GMT
Authorization: MNS 15B4D3461F177624206A:xit63dyKs83PTJF0hx3fd04C****
x-mns-version: 2015-06-06

Sample success responses

HTTP/1.1 204 No Content
x-mns-request-id: 56667314B2B71C9C1600****
x-mns-version: 2015-06-06