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.

DeleteCacheSubnetGroup

Deletes a cache subnet group.

Note

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.

CacheSubnetGroupName

The name of the cache subnet group to delete.

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

Type: String

Required: Yes

Errors

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

CacheSubnetGroupInUse

The requested cache subnet group is currently in use.

HTTP Status Code: 400

CacheSubnetGroupNotFoundFault

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

HTTP Status Code: 400

Example

DeleteCacheSubnetGroup

Sample Request

https://elasticache.amazonaws.com/ ?Action=DeleteCacheSubnetGroup &CacheSubnetGroupName=mysubnetgroup &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

Sample Response

<DeleteCacheSubnetGroupResponse xmlns="http://elasticache.amazonaws.com/doc/2015-02-02/"> <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: