Amazon ElastiCache
API Reference (API Version 2015-02-02)
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with AWS services in China.


Deletes a cache subnet group.


You cannot delete a cache subnet group if it 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



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 AWS SDKs, see the following: