AWS SDK Version 3 for .NET
API Reference

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.

Container for the parameters to the DeleteCacheCluster operation. Deletes a previously provisioned cache cluster. DeleteCacheCluster deletes all associated cache nodes, node endpoints and the cache cluster itself. When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the cache cluster; you cannot cancel or revert this operation.

This operation cannot be used to delete a cache cluster that is the last read replica of a replication group or node group (shard) that has Multi-AZ mode enabled or a cache cluster from a Redis (cluster mode enabled) replication group.

Due to current limitations on Redis (cluster mode disabled), this operation or parameter is not supported on Redis (cluster mode enabled) replication groups.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElastiCache.AmazonElastiCacheRequest
      Amazon.ElastiCache.Model.DeleteCacheClusterRequest

Namespace: Amazon.ElastiCache.Model
Assembly: AWSSDK.ElastiCache.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteCacheClusterRequest : AmazonElastiCacheRequest
         IAmazonWebServiceRequest

The DeleteCacheClusterRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteCacheClusterRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method DeleteCacheClusterRequest(string)

Instantiates DeleteCacheClusterRequest with the parameterized properties

Properties

NameTypeDescription
Public Property CacheClusterId System.String

Gets and sets the property CacheClusterId.

The cache cluster identifier for the cluster to be deleted. This parameter is not case sensitive.

Public Property FinalSnapshotIdentifier System.String

Gets and sets the property FinalSnapshotIdentifier.

The user-supplied name of a final cache cluster snapshot. This is the unique name that identifies the snapshot. ElastiCache creates the snapshot, and then deletes the cache cluster immediately afterward.

Examples

Deletes an Amazon ElastiCache cluster.

DeleteCacheCluster


var response = client.DeleteCacheCluster(new DeleteCacheClusterRequest 
{
    CacheClusterId = "my-memcached"
});

CacheCluster cacheCluster = response.CacheCluster;

            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms