Deletes a snapshot. If you call this operation to delete a snapshot that is being created, the task of creating the snapshot is canceled.

Precautions

If the specified snapshot ID does not exist, the request is disregarded.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description 
Action String Yes DeleteSnapshot

The operation that you want to perform. Set the value to DeleteSnapshot.

SnapshotId String Yes s-extreme-snapshotid1

The ID of the snapshot.

Response parameters

Parameter Type Example Description 
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request. This parameter is returned regardless of whether the operation is successful.

Examples

Sample requests


GET https://nas.cn-hangzhou.aliyuncs.com/?Action=DeleteSnapshot
&SnapshotId=s-extreme-6tmsbas6ljhwhlkh9
& <Common request parameters>
...

Sample success responses

JSON format

{
	"RequestId":"12FA778B-C8D3-4D2B-88AD-C10ED0326C57"
}

Error codes

For a list of error codes, visit the API Error Center.