:doc:`AgentsforBedrock <../../bedrock-agent>` / Client / delete_data_source

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



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

  

  Deletes a data source from a knowledge base.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/DeleteDataSource>`_  


  **Request Syntax**
  ::

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

    The unique identifier of the knowledge base from which to delete the data source.

    

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

    The unique identifier of the data source to delete.

    

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

    
    ::

      {
          'knowledgeBaseId': 'string',
          'dataSourceId': 'string',
          'status': 'AVAILABLE'|'DELETING'|'DELETE_UNSUCCESSFUL'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **knowledgeBaseId** *(string) --* 

        The unique identifier of the knowledge base to which the data source that was deleted belonged.

        
      

      - **dataSourceId** *(string) --* 

        The unique identifier of the data source that was deleted.

        
      

      - **status** *(string) --* 

        The status of the data source.

        
  
  **Exceptions**
  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ThrottlingException`

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.AccessDeniedException`

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

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

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

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

  