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