AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginDeleteGlobalReplicationGroup and EndDeleteGlobalReplicationGroup.
Namespace: Amazon.ElastiCache
Assembly: AWSSDK.ElastiCache.dll
Version: 3.x.y.z
public virtual Task<DeleteGlobalReplicationGroupResponse> DeleteGlobalReplicationGroupAsync( DeleteGlobalReplicationGroupRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the DeleteGlobalReplicationGroup service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
GlobalReplicationGroupNotFoundException | The Global datastore does not exist |
InvalidGlobalReplicationGroupStateException | The Global datastore is not available or in primary-only state. |
InvalidParameterValueException | The value for a parameter is invalid. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer