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(
    knowledgeBaseId='string',
    dataSourceId='string'
)
Parameters:
  • knowledgeBaseId (string) –

    [REQUIRED]

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

  • dataSourceId (string) –

    [REQUIRED]

    The unique identifier of the data source to delete.

Return type:

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