Delete an Existing Site

 

Applies To: Windows Azure Pack

Deletes an existing site.

Replace {ServiceMgmt} with your Service Management API endpoint address. Replace {Port} with either 30005 for the tenant API or 30006 for the Public Tenant API. Replace {SUBSCRIPTIONID} with the required subscription identifier. Replace {WEBSPACENAME}, and {NAME} with the corresponding values for your website.

Method

Request URI

HTTP version

DELETE

https://<ServiceMgmt>:<Port>/{SUBSCRIPTIONID}/services/webspaces/{WEBSPACENAME}/sites/{NAME}?deleteMetrics={DELETEMETRICS}&deleteEmptyServerFarm={DELETEEMPTYSERVERFARM}&skipDnsRegistration={SKIPDNSREGISTRATION}

HTTP/1.1

URI parameter

Description

deleteMetrics

To also delete the metrics for the site that you are deleting, you can specify deleteMetrics=true.

deleteEmptyServerFarm

If the site that is deleted is the last website in a server farm, you can delete the server farm by specifying deleteEmptyServerFarm=true.

skipDnsRegistration

Always specify skipDnsRegistration=true.

The following table describes required and optional request headers.

Request header

Description

x-ms-version

Required. Specifies the version of the operation to use for this request. This header should be set to 2012-10-10 or the current version.

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

A successful operation returns status code 200 (OK).

For information about status codes, see Error Codes (Web Sites Service REST API).

The response for this operation includes the following headers. The response can also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response header

Description

x-ms-request-id

A value that uniquely identifies the request that is made against the management service.

Show: