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
 Declaration Syntax| C# | 
public DeleteCacheSubnetGroupResponse DeleteCacheSubnetGroup( DeleteCacheSubnetGroupRequest deleteCacheSubnetGroupRequest )
 Parameters
 Parameters- deleteCacheSubnetGroupRequest (DeleteCacheSubnetGroupRequest)
- Container for the necessary parameters to execute the DeleteCacheSubnetGroup service method on AmazonElastiCache.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| CacheSubnetGroupNotFoundException | |
| CacheSubnetGroupInUseException |