Delete Namespace

Important

This API is obsolete and retired as of 11/1/2021 and should no longer be used.

Deletes an existing namespace. This operation also removes all associated entities including queues, topics, relay points, and messages stored under the namespace.

Request

Method Request URI HTTP version
DELETE https://management.core.windows.net/{subscription ID}/services/ServiceBus/Namespaces/{namespace name} HTTP/1.1

Request Headers

The name of the namespace to delete.

Request Header Description
Content-Type Set to application/xml;type=entry;charset=utf-8.
x-ms-version 2012-03-01

The request also requires a client certificate. This certificate must match the certificate you uploaded for that particular subscription.

Request Body

None

Response

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

Response Codes

Code Description
200 Namespace deleted successfully. It doesn't mean that the namespace is completely deleted at the return of the API call. This code means that it's marked for deletion.
401 Authorization failure. Returned when user doesn't have credentials to delete that namespace. It could be due to suspended subscription.
500 Internal error.

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

Response Headers

None.

Response Body

None