Skip to content

/AWS1/CL_ECA=>DELETEGLOBALREPLICATIONGROUP()

About DeleteGlobalReplicationGroup

Deleting a Global datastore is a two-step process:

  • First, you must DisassociateGlobalReplicationGroup to remove the secondary clusters in the Global datastore.

  • Once the Global datastore contains only the primary cluster, you can use the DeleteGlobalReplicationGroup API to delete the Global datastore while retainining the primary cluster using RetainPrimaryReplicationGroup=true.

Since the Global Datastore has only a primary cluster, you can delete the Global Datastore while retaining the primary by setting RetainPrimaryReplicationGroup=true. The primary cluster is never deleted when deleting a Global Datastore. It can only be deleted when it no longer is associated with any Global Datastore.

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

Method Signature

IMPORTING

Required arguments:

IV_GLOBALREPLICATIONGROUPID TYPE /AWS1/ECASTRING /AWS1/ECASTRING

The name of the Global datastore

IV_RETAINPRIMARYREPLGROUP TYPE /AWS1/ECABOOLEAN /AWS1/ECABOOLEAN

The primary replication group is retained as a standalone replication group.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ECADELGLBREPLGRPRSLT /AWS1/CL_ECADELGLBREPLGRPRSLT