View a markdown version of this page

Deleting a data group - Amazon Aurora

Deleting a data group

You can use the AWS Management Console or AWS CLI to delete a data group. You can delete a data group in the following cases:

  • The data group is active and empty. To make it empty, first drop its databases, or migrate them to another data group.

  • The data group is create-failed or inaccessible-encryption-credentials. In these cases, it can still hold data.

If you delete an active data group that still holds data, the request is accepted, but the delete fails. Aurora sends event RDS-EVENT-0537, and the data group stays.

Warning

You can't cancel a delete after you start it. The only way to get the data back is to restore it from a backup. For more information, see Restoring a DB cluster with data groups. If a data group is inaccessible-encryption-credentials, Aurora deletes it with its data.

Use the following procedure.

To delete a data group using the console
  1. Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the navigation pane, choose Data Groups.

  3. Under All data groups, select the data group that you want to delete.

  4. Choose Delete.

    A confirmation dialog box displays.

  5. Enter the confirmation word shown in the dialog box, then choose Delete.

To delete a data group, use the delete-data-group AWS CLI command with the following parameter:

  • --data-group-identifier – The identifier or ARN of the data group.

The following example deletes the data group tenant42.

aws rds delete-data-group \ --data-group-identifier dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111

The output resembles the following example.

{ "DBClusterIdentifier": "orders-cluster-2", "DataGroupName": "tenant42", "DataGroupIdentifier": "dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "DataGroupArn": "arn:aws:rds:us-east-1:111122223333:data-group:dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "Status": "deleting", "CreateTime": "2026-11-24T18:02:11.512Z" }

For more information, see delete-data-group.

When the delete finishes, Aurora sends event RDS-EVENT-0536 and retires the data group's grants on its KMS key. A describe-data-groups call for the identifier then returns DataGroupNotFoundFault.

When you delete a DB cluster, Aurora deletes all of its data groups and their data. For more information, see Deleting Aurora DB clusters and DB instances.