Delete Namespace

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

Note that 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. This does not mean that the namespace is completely deleted at the return of the API call. It means that it is marked for deletion.
401 Authorization failure. Returned when user does not have credentials to delete that namespace. This 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