:doc:`Connect <../../connect>` / Client / batch_disassociate_analytics_data_set

*************************************
batch_disassociate_analytics_data_set
*************************************



.. py:method:: Connect.Client.batch_disassociate_analytics_data_set(**kwargs)

  

  Removes a list of analytics datasets associated with a given Amazon Connect instance. You can disassociate multiple datasets in a single call.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/BatchDisassociateAnalyticsDataSet>`_  


  **Request Syntax**
  ::

    response = client.batch_disassociate_analytics_data_set(
        InstanceId='string',
        DataSetIds=[
            'string',
        ],
        TargetAccountId='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  :type DataSetIds: list
  :param DataSetIds: **[REQUIRED]** 

    An array of associated dataset identifiers to remove.

    

  
    - *(string) --* 

    

  :type TargetAccountId: string
  :param TargetAccountId: 

    The identifier of the target account. Use to disassociate a dataset from a different account than the one containing the Amazon Connect instance. If not specified, by default this value is the Amazon Web Services account that has the Amazon Connect instance.

    

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

    
    ::

      {
          'Deleted': [
              'string',
          ],
          'Errors': [
              {
                  'ErrorCode': 'string',
                  'ErrorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Deleted** *(list) --* 

        An array of successfully disassociated dataset identifiers.

        
        

        - *(string) --* 
    
      

      - **Errors** *(list) --* 

        A list of errors for any datasets not successfully removed.

        
        

        - *(dict) --* 

          This API is in preview release for Amazon Connect and is subject to change.

           

          List of errors for dataset association failures.

          
          

          - **ErrorCode** *(string) --* 

            The error code.

            
          

          - **ErrorMessage** *(string) --* 

            The corresponding error message for the error code.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

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

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  