HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/rds/delete-db-cluster.rst
**Example 1: To delete a DB instance in a DB cluster**

The following ``delete-db-instance`` example deletes the final DB instance in a DB cluster. You can't delete a DB cluster if it contains DB instances that aren't in the **deleting** state. You can't take a final snapshot when deleting a DB instance in a DB cluster. ::

    aws rds delete-db-instance \
        --db-instance-identifier database-3

Output::

    {
        "DBInstance": {
            "DBInstanceIdentifier": "database-3",
            "DBInstanceClass": "db.r4.large",
            "Engine": "aurora-postgresql",
            "DBInstanceStatus": "deleting",
    
        ...output omitted...
    
        }
    }

For more information, see `Deleting a DB Instance in an Aurora DB Cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_DeleteInstance.html>`__ in the *Amazon Aurora User Guide*.

**Example 2: To delete a DB cluster**

The following ``delete-db-cluster`` example deletes the DB cluster named ``mycluster`` and takes a final snapshot named ``mycluster-final-snapshot``. The status of the DB cluster is **available** while the snapshot is being taken. To follow the progress of the deletion, use the ``describe-db-clusters`` CLI command. ::

    aws rds delete-db-cluster \
        --db-cluster-identifier mycluster \
        --no-skip-final-snapshot \
        --final-db-snapshot-identifier mycluster-final-snapshot

Output::

    {
        "DBCluster": {
            "AllocatedStorage": 20,
            "AvailabilityZones": [
                "eu-central-1b",
                "eu-central-1c",
                "eu-central-1a"
            ],
            "BackupRetentionPeriod": 7,
            "DBClusterIdentifier": "mycluster",
            "DBClusterParameterGroup": "default.aurora-postgresql10",
            "DBSubnetGroup": "default-vpc-aa11bb22",
            "Status": "available",
        
        ...output omitted...
        
        }
    }

For more information, see `Aurora Clusters with a Single DB Instance <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_DeleteInstance.html#USER_DeleteInstance.LastInstance>`__ in the *Amazon Aurora User Guide*.