The DeleteCacheSubnetGroup operation deletes a cache subnet group.
NOTE:You cannot delete a cache subnet group if it is associated with any cache clusters.
Declaration Syntax
C# |
DeleteCacheSubnetGroupResponse DeleteCacheSubnetGroup( DeleteCacheSubnetGroupRequest deleteCacheSubnetGroupRequest )
Parameters
- deleteCacheSubnetGroupRequest (DeleteCacheSubnetGroupRequest)
- Container for the necessary parameters to execute the DeleteCacheSubnetGroup service method on AmazonElastiCache.
Exceptions
Exception | Condition |
---|---|
CacheSubnetGroupNotFoundException | |
CacheSubnetGroupInUseException |