Delete Storage Account

 

The Delete Storage Account asynchronous operation deletes the specified storage account.

Request

The Delete Storage Account request may be specified as follows. Replace <subscription-id> with your subscription ID, and <service-name> with the name of the storage account.

Method

Request URI

DELETE

https://management.core.windows.net/<subscription-id>/services/storageservices/<service-name>

URI Parameters

None.

Request Headers

The following table describes the request headers.

Request Header

Description

x-ms-version

Required. Specifies the version of the operation to use for this request. The value of this header must be set to 2011-06-01 or higher.

Request Body

None.

Response

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

Status Code

A successful operation returns status code 200 (OK).

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers.

Response Header

Description

x-ms-request-id

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.

Response Body

None.

Remarks

Use the Delete Storage Account operation to delete a storage account by name. Data stored in a deleted storage account cannot be recovered, and storage account names that have been deleted can be adopted by other users.

Before you delete a storage account, you must first delete all OS Images, VM Images, and disks that are located in the account. Asynchronous operations are used to delete artifacts from a storage account. You can use the Get Operation Status operation to make sure that the operations are finished before you try to delete the storage account. It may take up to 15 minutes for all operations to finish before the storage account can be deleted.