AgentsforBedrock / Client / delete_data_source

delete_data_source#

AgentsforBedrock.Client.delete_data_source(**kwargs)#

Deletes a data source from a knowledge base.

See also: AWS API Documentation

Request Syntax

response = client.delete_data_source(
    dataSourceId='string',
    knowledgeBaseId='string'
)
Parameters:
  • dataSourceId (string) –

    [REQUIRED]

    The unique identifier of the data source to delete.

  • knowledgeBaseId (string) –

    [REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • dataSourceId (string) –

      The unique identifier of the data source that was deleted.

    • knowledgeBaseId (string) –

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

    • status (string) –

      The status of the data source.

Exceptions