:doc:`CloudWatchLogs <../../logs>` / Client / delete_retention_policy

***********************
delete_retention_policy
***********************



.. py:method:: CloudWatchLogs.Client.delete_retention_policy(**kwargs)

  

  Deletes the specified retention policy.

   

  Log events do not expire if they belong to log groups without a retention policy.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_retention_policy(
        logGroupName='string'
    )
    
  :type logGroupName: string
  :param logGroupName: **[REQUIRED]** 

    The name of the log group.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CloudWatchLogs.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.OperationAbortedException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ServiceUnavailableException`

  