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

******************
delete_integration
******************



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

  

  Deletes the integration between CloudWatch Logs and OpenSearch Service. If your integration has active vended logs dashboards, you must specify ``true`` for the ``force`` parameter, otherwise the operation will fail. If you delete the integration by setting ``force`` to ``true``, all your vended logs dashboards powered by OpenSearch Service will be deleted and the data that was on them will no longer be accessible.

  

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


  **Request Syntax**
  ::

    response = client.delete_integration(
        integrationName='string',
        force=True|False
    )
    
  :type integrationName: string
  :param integrationName: **[REQUIRED]** 

    The name of the integration to delete. To find the name of your integration, use `ListIntegrations <https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html>`__.

    

  
  :type force: boolean
  :param force: 

    Specify ``true`` to force the deletion of the integration even if vended logs dashboards currently exist.

     

    The default is ``false``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CloudWatchLogs.Client.exceptions.InvalidParameterException`

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

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

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

  