The DeleteReplicationGroup operation deletes an existing replication group. By default, this operation deletes the entire replication group, including the primary cache cluster and all of the read replicas. You can optionally delete only the read replicas, while retaining the primary cache cluster.
When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this operation.
 Declaration Syntax
 Declaration Syntax| C# | 
public DeleteReplicationGroupResponse DeleteReplicationGroup( DeleteReplicationGroupRequest deleteReplicationGroupRequest )
 Parameters
 Parameters- deleteReplicationGroupRequest (DeleteReplicationGroupRequest)
- Container for the necessary parameters to execute the DeleteReplicationGroup service method on AmazonElastiCache.
 Return Value
 Return ValueThe response from the DeleteReplicationGroup service method, as returned by AmazonElastiCache.
 Exceptions
 Exceptions