

# DeleteDBClusterGroup

Deletes a DB cluster group. You can't delete a DB cluster group that has deletion protection enabled.

Remove all DB clusters from the DB cluster group with `RemoveDBClusterFromDBClusterGroup` before you delete it.

## Request Parameters
<a name="API_DeleteDBClusterGroup_RequestParameters"></a>

 For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

 ** DBClusterGroupIdentifier **   
The identifier of the DB cluster group to delete.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 63.  
Pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`   
Required: Yes

 ** DeleteAutomatedBackups **   
Specifies whether to remove the automated backups of the DB cluster group immediately after you delete the DB cluster group. If you keep them, Amazon RDS retains them and you can restore from them with `RestoreDBClusterGroupToPointInTime`.  
The default is to remove the automated backups immediately after the DB cluster group is deleted.  
Type: Boolean  
Required: No

## Response Elements
<a name="API_DeleteDBClusterGroup_ResponseElements"></a>

The following element is returned by the service.

 ** DBClusterGroup **   
Describes a DB cluster group, including its settings, status, member DB clusters, and routing endpoint.  
This data type is used as a response element in the `CreateDBClusterGroup`, `DeleteDBClusterGroup`, `DescribeDBClusterGroups`, `ModifyDBClusterGroup`, `RestoreDBClusterGroupFromSnapshot`, and `RestoreDBClusterGroupToPointInTime` actions.  
Type: [DBClusterGroup](API_DBClusterGroup.md) object

## Errors
<a name="API_DeleteDBClusterGroup_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** DBClusterGroupNotFound **   
The specified DB cluster group wasn't found. Verify that the DB cluster group identifier is correct.  
HTTP Status Code: 404

 ** InvalidDBClusterGroupState **   
The DB cluster group isn't in a valid state.  
HTTP Status Code: 400

## See Also
<a name="API_DeleteDBClusterGroup_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/rds-2014-10-31/DeleteDBClusterGroup) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/rds-2014-10-31/DeleteDBClusterGroup) 