DeleteClusterSnapshot
Deletes the specified manual snapshot. The snapshot must be in the
available
state, with no other users authorized to access the snapshot.
Unlike automated snapshots, manual snapshots are retained even after you delete your cluster. Amazon Redshift does not delete your manual snapshots. You must delete manual snapshot explicitly to avoid getting charged. If other accounts are authorized to access the snapshot, you must revoke all of the authorizations before you can delete the snapshot.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- SnapshotIdentifier
-
The unique identifier of the manual snapshot to be deleted.
Constraints: Must be the name of an existing snapshot that is in the
available
,failed
, orcancelled
state.Type: String
Length Constraints: Maximum length of 2147483647.
Required: Yes
- SnapshotClusterIdentifier
-
The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
Constraints: Must be the name of valid cluster.
Type: String
Length Constraints: Maximum length of 2147483647.
Required: No
Response Elements
The following element is returned by the service.
- Snapshot
-
Describes a snapshot.
Type: Snapshot object
Errors
For information about the errors that are common to all actions, see Common Errors.
- ClusterSnapshotNotFound
-
The snapshot identifier does not refer to an existing cluster snapshot.
HTTP Status Code: 404
- InvalidClusterSnapshotState
-
The specified cluster snapshot is not in the
available
state, or other accounts are authorized to access the snapshot.HTTP Status Code: 400
Examples
Example
This example illustrates one usage of DeleteClusterSnapshot.
Sample Request
https://redshift.us-east-2.amazonaws.com/
?Action=DeleteClusterSnapshot
&SnapshotIdentifier=mysnapshotid
&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
<DeleteClusterSnapshotResponse xmlns="http://redshift.amazonaws.com/doc/2012-12-01/">
<DeleteClusterSnapshotResult>
<Snapshot>
<SnapshotRetentionStartTime>2019-12-26T22:38:40.158Z</SnapshotRetentionStartTime>
<ClusterIdentifier>mycluster</ClusterIdentifier>
<EncryptedWithHSM>false</EncryptedWithHSM>
<NumberOfNodes>2</NumberOfNodes>
<OwnerAccount>123456789012</OwnerAccount>
<AvailabilityZone>us-east-2a</AvailabilityZone>
<ClusterVersion>1.0</ClusterVersion>
<ManualSnapshotRetentionPeriod>-1</ManualSnapshotRetentionPeriod>
<TotalBackupSizeInMegaBytes>55.0</TotalBackupSizeInMegaBytes>
<VpcId>vpc-a1abc1a1</VpcId>
<BackupProgressInMegaBytes>31.0</BackupProgressInMegaBytes>
<CurrentBackupRateInMegaBytesPerSecond>25.5354</CurrentBackupRateInMegaBytesPerSecond>
<ElapsedTimeInSeconds>1</ElapsedTimeInSeconds>
<ClusterCreateTime>2019-12-26T20:25:38.716Z</ClusterCreateTime>
<MasterUsername>adminuser</MasterUsername>
<DBName>dev</DBName>
<ActualIncrementalBackupSizeInMegaBytes>31.0</ActualIncrementalBackupSizeInMegaBytes>
<SnapshotType>manual</SnapshotType>
<EnhancedVpcRouting>false</EnhancedVpcRouting>
<SnapshotIdentifier>mysnapshotid</SnapshotIdentifier>
<NodeType>dc2.large</NodeType>
<Tags/>
<Encrypted>false</Encrypted>
<Port>5439</Port>
<EstimatedSecondsToCompletion>0</EstimatedSecondsToCompletion>
<MaintenanceTrackName>current</MaintenanceTrackName>
<SnapshotCreateTime>2019-12-26T22:38:38.944Z</SnapshotCreateTime>
<Status>deleted</Status>
</Snapshot>
</DeleteClusterSnapshotResult>
<ResponseMetadata>
<RequestId>08614243-2839-11ea-8cc9-43f1872b4b75</RequestId>
</ResponseMetadata>
</DeleteClusterSnapshotResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: