Deleting a Global Datastore is a two-step process:
First, you must
disassociate_global_replication_group
to remove the secondary clusters in the Global Datastore.
Once the Global Datastore contains only the primary cluster, you can use DeleteGlobalReplicationGroup API to delete the Global Datastore while retainining the primary cluster using Retain…= true.
Since the Global Datastore has only a primary cluster, you can delete
the Global Datastore 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.
elasticache_delete_global_replication_group(GlobalReplicationGroupId,
RetainPrimaryReplicationGroup)
A list with the following syntax:
list(
GlobalReplicationGroup = list(
GlobalReplicationGroupId = "string",
GlobalReplicationGroupDescription = "string",
Status = "string",
CacheNodeType = "string",
Engine = "string",
EngineVersion = "string",
Members = list(
list(
ReplicationGroupId = "string",
ReplicationGroupRegion = "string",
Role = "string",
AutomaticFailover = "enabled"|"disabled"|"enabling"|"disabling",
Status = "string"
)
),
ClusterEnabled = TRUE|FALSE,
GlobalNodeGroups = list(
list(
GlobalNodeGroupId = "string",
Slots = "string"
)
),
AuthTokenEnabled = TRUE|FALSE,
TransitEncryptionEnabled = TRUE|FALSE,
AtRestEncryptionEnabled = TRUE|FALSE,
ARN = "string"
)
)
[required] The name of the Global Datastore
[required] The primary replication group is retained as a standalone replication group.
svc$delete_global_replication_group(
GlobalReplicationGroupId = "string",
RetainPrimaryReplicationGroup = TRUE|FALSE
)