delete_cache_parameter_group(**kwargs)¶Deletes the specified cache parameter group. You cannot delete a cache parameter group if it is associated with any cache clusters. You cannot delete the default cache parameter groups in your account.
See also: AWS API Documentation
Request Syntax
response = client.delete_cache_parameter_group(
    CacheParameterGroupName='string'
)
[REQUIRED]
The name of the cache parameter group to delete.
Note
The specified cache security group must not be associated with any clusters.
Exceptions
ElastiCache.Client.exceptions.InvalidCacheParameterGroupStateFaultElastiCache.Client.exceptions.CacheParameterGroupNotFoundFaultElastiCache.Client.exceptions.InvalidParameterValueExceptionElastiCache.Client.exceptions.InvalidParameterCombinationExceptionExamples
Deletes the Amazon ElastiCache parameter group custom-mem1-4.
response = client.delete_cache_parameter_group(
    CacheParameterGroupName='custom-mem1-4',
)
print(response)
Expected Output:
{
    'ResponseMetadata': {
        '...': '...',
    },
}