Share via


Delete Topic

 

Deletes an existing topic. This operation also removes all associated state including associated subscriptions.

Request

Method

Request URI

HTTP Version

DELETE

https://{serviceNamespace}.servicebus.windows.net/{Topic Path}

HTTP/1.1

Request Headers

The following table describes required and optional request headers.

Request Header

Description

Authorization

Specifies a WRAPv0.9.7.2 token containing a SimpleWebToken acquired from ACS. Set to WRAP access_token=”{swt}”.

Request Body

None.

Response

The response includes an HTTP status code and a set of response headers.

Response Codes

Code

Description

201

Topic deleted.

401

Authorization failure.

404

The specified topic does not exist.

500

Internal error.

For information about status codes, see Status and Error Codes.

Response Headers

None.

Response Body

None.

See Also

Topics
Example: Creating a Topic
Create Topic
Get Topic
List Topics
Topic Description