BatchDeleteClusterSnapshots - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

BatchDeleteClusterSnapshots

Deletes a set of cluster snapshots.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

Identifiers.DeleteClusterSnapshotMessage.N

A list of identifiers for the snapshots that you want to delete.

Type: Array of DeleteClusterSnapshotMessage objects

Required: Yes

Response Elements

The following elements are returned by the service.

Errors.SnapshotErrorMessage.N

A list of any errors returned.

Type: Array of SnapshotErrorMessage objects

Resources.String.N

A list of the snapshot identifiers that were deleted.

Type: Array of strings

Length Constraints: Maximum length of 2147483647.

Errors

For information about the errors that are common to all actions, see Common Errors.

BatchDeleteRequestSizeExceeded

The maximum number for a batch delete of snapshots has been reached. The limit is 100.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of BatchDeleteClusterSnapshots.

Sample Request

https://redshift.us-east-2.amazonaws.com/ ?Action=BatchDeleteClusterSnapshots &Identifiers.DeleteClusterSnapshotMessage.1.SnapshotIdentifier=mysnapshotid1 &Identifiers.DeleteClusterSnapshotMessage.2.SnapshotIdentifier=mysnapshotid2 &SignatureMethod=HmacSHA256&SignatureVersion=4 &Version=2012-12-01 &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Credential=AKIAIOSFODNN7EXAMPLE/20190817/us-east-2/redshift/aws4_request &X-Amz-Date=20190825T160000Z &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date &X-Amz-Signature=0aa1234bb5cc678ddddd901ee2ff3aa45678b90c12d345e6ff789012345a6b7b

Sample Response

<BatchDeleteClusterSnapshotsResponse xmlns="http://redshift.amazonaws.com/doc/2012-12-01/"> <BatchDeleteClusterSnapshotsResult> <Resources> <String>mysnapshotid1</String> <String>mysnapshotid2</String> </Resources> </BatchDeleteClusterSnapshotsResult> <ResponseMetadata> <RequestId>5b43fc38-282e-11ea-8cc9-43f1872b4b75</RequestId> </ResponseMetadata> </BatchDeleteClusterSnapshotsResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: