:doc:`ElastiCache <../../elasticache>` / Client / delete_cache_parameter_group

****************************
delete_cache_parameter_group
****************************



.. py:method:: ElastiCache.Client.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 <https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteCacheParameterGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_cache_parameter_group(
        CacheParameterGroupName='string'
    )
    
  :type CacheParameterGroupName: string
  :param CacheParameterGroupName: **[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**
  
  *   :py:class:`ElastiCache.Client.exceptions.InvalidCacheParameterGroupStateFault`

  
  *   :py:class:`ElastiCache.Client.exceptions.CacheParameterGroupNotFoundFault`

  
  *   :py:class:`ElastiCache.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`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': {
            '...': '...',
        },
    }

  