Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.
NOTE:The DBSnapshot must be in the available state to be deleted.
Declaration Syntax
C# |
DeleteDBSnapshotResponse DeleteDBSnapshot( DeleteDBSnapshotRequest deleteDBSnapshotRequest )
Parameters
- deleteDBSnapshotRequest (DeleteDBSnapshotRequest)
- Container for the necessary parameters to execute the DeleteDBSnapshot service method on AmazonRDS.
Return Value
The response from the DeleteDBSnapshot service method, as returned by AmazonRDS.
Exceptions
Exception | Condition |
---|---|
InvalidDBSnapshotStateException | |
DBSnapshotNotFoundException |