Delete Cloud Service
Updated: December 10, 2013
The Delete Cloud Service operation deletes the specified cloud service from your subscription.
The Delete Cloud Service request may be specified as follows. Replace
<subscription-id> with your subscription ID, and
<cloudservice-name> with the name of the cloud service.
|Method||Request URI||HTTP Version|
Optional. Specifies that the operating system disk, attached data disks, and the source blobs for the disks should also be deleted from storage.
The comp=media parameter is only available using version 2013-08-01 and higher.
The following table describes the request headers.
Required. Specifies the version of the operation to use for this request. The value of this header must be set to 2010-10-28 or higher. For more information about versioning headers, see Service Management Versioning.
The response includes an HTTP status code and a set of response headers.
When you use the comp=media parameter, the Delete Cloud Service operation is an asynchronous operation, which requires you to call Get Operation Status to determine whether the operation is complete, has failed, or is still in progress.
If you use the comp=media parameter, the Delete Cloud Service is an asynchronous operation and always returns the status code 202 (Accepted). The status code for the request is embedded in the response; if successful, the status code is 200 (OK).
The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.
A value that uniquely identifies a request made against the Management service. For an asynchronous operation, you can call get operation status with the value of the header to determine whether the operation is complete, has failed, or is still in progress. See Tracking Asynchronous Service Management Requests for more information.
Any management certificate associated with the subscription specified by
<subscription-id> can be used to authenticate this operation. For additional details, see Authenticating Service Management Requests.
If you do not use the comp=media parameter, you must delete all of the deployments in a cloud service before you can delete the cloud service. You can use the Windows Azure Management Portal or you can use Delete Deployment to delete deployments.