v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1475719557.8 KB

Deletes documents from a data source and syncs the changes to the knowledge base that is connected to it. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html">Ingest changes directly into a knowledge base</a> in the Amazon Bedrock User Guide.

post/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents/deleteDocuments

Path parameters

knowledgeBaseIdstring required

The unique identifier of the knowledge base that is connected to the data source.

dataSourceIdstring required

The unique identifier of the data source that contains the documents.

Request body

clientTokenstring

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.

Response

Success