Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_cache_parameter_group

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'
)
Parameters
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.

Returns
None

Exceptions

  • ElastiCache.Client.exceptions.InvalidCacheParameterGroupStateFault
  • ElastiCache.Client.exceptions.CacheParameterGroupNotFoundFault
  • ElastiCache.Client.exceptions.InvalidParameterValueException
  • ElastiCache.Client.exceptions.InvalidParameterCombinationException

Examples

Deletes the Amazon ElastiCache parameter group custom-mem1-4.

response = client.delete_cache_parameter_group(
    CacheParameterGroupName='custom-mem1-4',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}