Deleting a Cluster with Replicas
If you no longer need a one of your clusters with replicas (called replication groups in the API/CLI), you can delete it. When you delete a replication group, ElastiCache deletes all of the nodes in that group.
Once you have begun this operation, it cannot be interrupted or cancelled.
Deleting a Replication Group (Console)
To delete a cluster that has replicas, see Deleting a Cluster.
Deleting a Replication Group (AWS CLI)
Use the command
delete a replication group.
aws elasticache delete-replication-group --replication-group-id
A prompt asks you to confirm your decision. Enter y (yes) to start the operation immediately. After the process starts, it is irreversible.
After you begin deleting this replication group, all of its nodes will be deleted as well. Are you sure you want to delete this replication group? [Ny]y REPLICATIONGROUP my-repgroup My replication group deleting
Deleting a Replication Group (ElastiCache API)
DeleteReplicationGroup with the
https://elasticache.us-west-2.amazonaws.com/ ?Action=DeleteReplicationGroup &ReplicationGroupId=my-repgroup &Version=2014-12-01 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20141201T220302Z &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Date=20141201T220302Z &X-Amz-SignedHeaders=Host &X-Amz-Expires=20141201T220302Z &X-Amz-Credential=<credential> &X-Amz-Signature=<signature>
If you set the
RetainPrimaryCluster parameter to
all of the read replicas will be deleted, but the primary cluster will be retained.