Deletes a previously provisioned cluster. When you delete a cluster, all automated backups for that cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified cluster are not deleted.
docdb_delete_db_cluster(DBClusterIdentifier, SkipFinalSnapshot,
FinalDBSnapshotIdentifier)
[required] The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive.
Constraints:
Must match an existing DBClusterIdentifier
.
Determines whether a final cluster snapshot is created before the
cluster is deleted. If true
is specified, no cluster snapshot is
created. If false
is specified, a cluster snapshot is created before
the DB cluster is deleted.
If SkipFinalSnapshot
is false
, you must specify a
FinalDBSnapshotIdentifier
parameter.
Default: false
The cluster snapshot identifier of the new cluster snapshot created when
SkipFinalSnapshot
is set to false
.
Specifying this parameter and also setting the SkipFinalShapshot
parameter to true
results in an error.
Constraints:
Must be from 1 to 255 letters, numbers, or hyphens.
The first character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
A list with the following syntax:
list( DBCluster = list( AvailabilityZones = list( "string" ), BackupRetentionPeriod = 123, DBClusterIdentifier = "string", DBClusterParameterGroup = "string", DBSubnetGroup = "string", Status = "string", PercentProgress = "string", EarliestRestorableTime = as.POSIXct( "2015-01-01" ), Endpoint = "string", ReaderEndpoint = "string", MultiAZ = TRUE|FALSE, Engine = "string", EngineVersion = "string", LatestRestorableTime = as.POSIXct( "2015-01-01" ), Port = 123, MasterUsername = "string", PreferredBackupWindow = "string", PreferredMaintenanceWindow = "string", DBClusterMembers = list( list( DBInstanceIdentifier = "string", IsClusterWriter = TRUE|FALSE, DBClusterParameterGroupStatus = "string", PromotionTier = 123 ) ), VpcSecurityGroups = list( list( VpcSecurityGroupId = "string", Status = "string" ) ), HostedZoneId = "string", StorageEncrypted = TRUE|FALSE, KmsKeyId = "string", DbClusterResourceId = "string", DBClusterArn = "string", AssociatedRoles = list( list( RoleArn = "string", Status = "string" ) ), ClusterCreateTime = as.POSIXct( "2015-01-01" ), EnabledCloudwatchLogsExports = list( "string" ), DeletionProtection = TRUE|FALSE ) )
svc$delete_db_cluster( DBClusterIdentifier = "string", SkipFinalSnapshot = TRUE|FALSE, FinalDBSnapshotIdentifier = "string" )