delete_cache_subnet_group(**kwargs)¶Deletes a cache subnet group.
Note
You cannot delete a default cache subnet group or one that is associated with any clusters.
See also: AWS API Documentation
Request Syntax
response = client.delete_cache_subnet_group(
    CacheSubnetGroupName='string'
)
[REQUIRED]
The name of the cache subnet group to delete.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Exceptions
ElastiCache.Client.exceptions.CacheSubnetGroupInUseElastiCache.Client.exceptions.CacheSubnetGroupNotFoundFaultExamples
Deletes the Amazon ElastiCache subnet group my-subnet-group.
response = client.delete_cache_subnet_group(
    CacheSubnetGroupName='my-subnet-group',
)
print(response)
Expected Output:
{
    'ResponseMetadata': {
        '...': '...',
    },
}