<a id="cli-aws-rds-delete-db-cluster-group"></a>

# delete-db-cluster-group

## Description

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.

See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterGroup)

## Synopsis

```
  delete-db-cluster-group
--db-cluster-group-identifier <value>
[--delete-automated-backups | --no-delete-automated-backups]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]
```

## Options

`--db-cluster-group-identifier` (string) [required]

> The identifier of the DB cluster group to delete.

> Constraints:

> * min: `1`
> * max: `63`
> * pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`

`--delete-automated-backups` | `--no-delete-automated-backups` (boolean)

> 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.

`--cli-input-json` | `--cli-input-yaml` (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by `--generate-cli-skeleton`. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with `--cli-input-yaml`.

`--generate-cli-skeleton` (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value `input`, prints a sample input JSON that can be used as an argument for `--cli-input-json`. Similarly, if provided `yaml-input` it will print a sample input YAML that can be used with `--cli-input-yaml`. If provided with the value `output`, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

## Global Options

`--debug` (boolean)

Turn on debug logging.

`--endpoint-url` (string)

Override command’s default URL with the given URL.

`--no-verify-ssl` (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

`--no-paginate` (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

`--output` (string)

The formatting style for command output.

* json
* text
* table
* yaml
* yaml-stream
* off

`--query` (string)

A JMESPath query to use in filtering the response data.

`--profile` (string)

Use a specific profile from your credential file.

`--region` (string)

The region to use. Overrides config/env settings.

`--version` (string)

Display the version of this tool.

`--color` (string)

Turn on/off color output.

* on
* off
* auto

`--no-sign-request` (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

`--ca-bundle` (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

`--cli-read-timeout` (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

`--cli-connect-timeout` (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

`--cli-binary-format` (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob `fileb://` will always be treated as binary and use the file contents directly regardless of the `cli-binary-format` setting. When using `file://` the file contents will need to properly formatted for the configured `cli-binary-format`.

* base64
* raw-in-base64-out

`--no-cli-pager` (boolean)

Disable cli pager for output.

`--cli-auto-prompt` (boolean)

Automatically prompt for CLI input parameters.

`--no-cli-auto-prompt` (boolean)

Disable automatically prompt for CLI input parameters.

`--cli-error-format` (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

* legacy
* json
* yaml
* text
* table
* enhanced

`--help` (boolean)

Display help for the command/subcommand.

## Output

DBClusterGroup -> (structure)

> 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.

> DBClusterGroupIdentifier -> (string)

> > The identifier of the DB cluster group.

> > Constraints:

> > * min: `1`
> > * max: `63`
> > * pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`

> DBClusterGroupResourceId -> (string)

> > The Amazon Web Services Region-unique, immutable identifier for the DB cluster group.

> DBClusterGroupArn -> (string)

> > The Amazon Resource Name (ARN) for the DB cluster group.

> Status -> (string)

> > The status of the DB cluster group.

> > Valid Values:

> > * `creating` - Amazon RDS is creating the DB cluster group.
> > * `available` - The DB cluster group is ready to use.
> > * `modifying` - Amazon RDS is applying a change to the DB cluster group.
> > * `deleting` - Amazon RDS is deleting the DB cluster group.
> > * `incompatible-restore` - Amazon RDS couldn’t restore the DB cluster group.

> > Possible values:

> > * `creating`
> > * `available`
> > * `deleting`
> > * `modifying`
> > * `incompatible-restore`

> Engine -> (string)

> > The database engine used by the DB cluster group.

> MinEngineVersion -> (string)

> > The lowest engine version among the member DB clusters of the DB cluster group.

> MaxEngineVersion -> (string)

> > The highest engine version among the member DB clusters of the DB cluster group.

> PendingModifiedValues -> (structure)

> > Changes to the DB cluster group that are pending.

> > EngineVersion -> (string)

> > > The engine version that the member DB clusters of the DB cluster group will be upgraded to.

> PreferredMaintenanceWindow -> (string)

> > The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

> CopyTagsToSnapshot -> (boolean)

> > Specifies whether tags are copied from the DB cluster group to snapshots of the DB cluster group.

> PreferredBackupWindow -> (string)

> > The daily time range during which automated backups are created, in Universal Coordinated Time (UTC).

> BackupRetentionPeriod -> (integer)

> > The number of days for which automated backups of the DB cluster group are retained.

> EarliestRestorableTime -> (timestamp)

> > The earliest time to which the DB cluster group can be restored with point-in-time restore.

> LatestRestorableTime -> (timestamp)

> > The latest time to which the DB cluster group can be restored with point-in-time restore.

> DBClusterGroupCreateTime -> (timestamp)

> > The time when the DB cluster group was created, in Universal Coordinated Time (UTC).

> DeletionProtection -> (boolean)

> > Specifies whether the DB cluster group has deletion protection enabled. You can’t delete the DB cluster group when deletion protection is enabled.

> RoutingEnabled -> (boolean)

> > Specifies whether routing is enabled for the DB cluster group.

> RoutingEndpointConfigurationInfo -> (structure)

> > The details of the routing endpoint of the DB cluster group. This element is returned only when routing is enabled.

> > VpcSubnetIds -> (list)

> > > The IDs of the subnets in which the routing endpoint is created.

> > > (string)

> > VpcSecurityGroupIds -> (list)

> > > The IDs of the VPC security groups that are associated with the routing endpoint.

> > > (string)

> > NetworkType -> (string)

> > > The network type of the routing endpoint.

> > > Possible values:

> > > * `IPV4`
> > > * `IPV6`
> > > * `DUAL`

> > Status -> (string)

> > > The status of the routing endpoint.

> > > Valid Values:

> > > * `creating` - Amazon RDS is creating the routing endpoint.
> > > * `available` - The routing endpoint is ready to use.
> > > * `modifying` - Amazon RDS is applying a change to the routing endpoint.
> > > * `deleting` - Amazon RDS is deleting the routing endpoint.
> > > * `incompatible-network` - Amazon RDS can’t use the network settings of the routing endpoint, for example because a subnet or security group no longer exists.
> > > * `insufficient-resource-limits` - Amazon RDS can’t create or update the routing endpoint because an Amazon Web Services account quota was reached.

> > > Possible values:

> > > * `available`
> > > * `modifying`
> > > * `incompatible-network`
> > > * `insufficient-resource-limits`
> > > * `creating`
> > > * `deleting`

> > Endpoint -> (string)

> > > The DNS address of the router endpoint.

> > ReaderEndpoint -> (string)

> > > The DNS address of the reader router endpoint.

> > Port -> (integer)

> > > The port on which the routing endpoint accepts connections.

> > VpcId -> (string)

> > > The ID of the VPC of the routing endpoint.

> > Parameters -> (map)

> > > The routing parameters of the routing endpoint, as name-value pairs. Includes parameters set to their default values.

> > > Constraints:

> > > * min: `0`
> > > * max: `100`

> > > key -> (string)

> > > value -> (string)

> TagList -> (list)

> > The tags assigned to the DB cluster group.

> > (structure)

> > > Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

> > > For more information, see [Tagging Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide* .

> > > Key -> (string)

> > > > A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

> > > Value -> (string)

> > > > A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can’t be prefixed with `aws:` or `rds:` . The string can only contain only the set of Unicode letters, digits, white-space, ‘_’, ‘.’, ‘:’, ‘/’, ‘=’, ‘+’, ‘-’, ‘@’ (Java regex: “^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]\*)$”).

> DBClusterGroupMembers -> (list)

> > The DB clusters that are members of the DB cluster group.

> > (structure)

> > > Contains the details of a DB cluster that is a member of a DB cluster group.

> > > DBClusterArn -> (string)

> > > > The Amazon Resource Name (ARN) for the DB cluster.

> AdminUsername -> (string)

> > The name of the admin user that the routing endpoint uses to connect to the member DB clusters.
