DeleteCacheSubnetGroup - Amazon ElastiCache
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Deletes a cache subnet group.


You cannot delete a default cache subnet group or one that is associated with any clusters.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The name of the cache subnet group to delete.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Type: String

Required: Yes


For information about the errors that are common to all actions, see Common Errors.


The requested cache subnet group is currently in use.

HTTP Status Code: 400


The requested cache subnet group name does not refer to an existing cache subnet group.

HTTP Status Code: 400



This example illustrates one usage of DeleteCacheSubnetGroup.

Sample Request ?Action=DeleteCacheSubnetGroup &CacheSubnetGroupName=mysubnetgroup &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

Sample Response

<DeleteCacheSubnetGroupResponse xmlns=""> <ResponseMetadata> <RequestId>5d013245-4172-11df-8520-e7e1e602a915</RequestId> </ResponseMetadata> </DeleteCacheSubnetGroupResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: