CmdID

CmdID / aws / aws elasticache

aws elasticache delete-replication-group

Deletes an existing replication group. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete a replication group

The following delete-replication-group example deletes an existing replication group. By default, this operation deletes the entire replication group, including the primary/primaries and all of the read replicas. If the replication group has only one primary, you can optionally delete only the read replicas, while retaining the primary by setting RetainPrimaryCluster=true .

When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this operation. Valid for Redis only.

aws elasticache delete-replication-group --replication-group-id "mygroup"Identify
--replication-group-idThe identifier for the cluster to be deleted.
Its output
{
    "ReplicationGroup": {
        "ReplicationGroupId": "mygroup",
        "Description": "my group",
        "Status": "deleting",
        "PendingModifiedValues": {},
        "AutomaticFailover": "disabled",
        "SnapshotRetentionLimit": 0,
        "SnapshotWindow": "06:00-07:00",
        "TransitEncryptionEnabled": false,
        "AtRestEncryptionEnabled": false
    }
}

For more information, see Deleting a replication group in the Amazon ElastiCache User Guide.

Options

3 in the AWS CLI reference
--final-snapshot-identifierThe name of a final node group (shard) snapshot.
--replication-group-idThe identifier for the cluster to be deleted.
--retain-primary-clusterIf set to true, all of the read replicas are deleted, but the primary node is retained.