:doc:`kendra <../../kendra>` / Client / delete_data_source

******************
delete_data_source
******************



.. py:method:: kendra.Client.delete_data_source(**kwargs)

  

  Deletes an Amazon Kendra data source connector. An exception is not thrown if the data source is already being deleted. While the data source is being deleted, the ``Status`` field returned by a call to the ``DescribeDataSource`` API is set to ``DELETING``. For more information, see `Deleting Data Sources <https://docs.aws.amazon.com/kendra/latest/dg/delete-data-source.html>`__.

   

  Deleting an entire data source or re-syncing your index after deleting specific documents from a data source could take up to an hour or more, depending on the number of documents you want to delete.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DeleteDataSource>`_  


  **Request Syntax**
  ::

    response = client.delete_data_source(
        Id='string',
        IndexId='string'
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The identifier of the data source connector you want to delete.

    

  
  :type IndexId: string
  :param IndexId: **[REQUIRED]** 

    The identifier of the index used with the data source connector.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`kendra.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`kendra.Client.exceptions.ConflictException`

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

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

  
  *   :py:class:`kendra.Client.exceptions.InternalServerException`

  