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

**********************
delete_resource_policy
**********************



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

  

  Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.

  

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


  **Request Syntax**
  ::

    response = client.delete_resource_policy(
        policyName='string',
        resourceArn='string',
        expectedRevisionId='string'
    )
    
  :type policyName: string
  :param policyName: 

    The name of the policy to be revoked. This parameter is required.

    

  
  :type resourceArn: string
  :param resourceArn: 

    The ARN of the CloudWatch Logs resource for which the resource policy needs to be deleted

    

  
  :type expectedRevisionId: string
  :param expectedRevisionId: 

    The expected revision ID of the resource policy. Required when deleting a resource-scoped policy to prevent concurrent modifications.

    

  
  
  :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`

  