DeleteKnowledgeBaseDocuments
Source:
src/AWS/Bedrock/DeleteKnowledgeBaseDocuments.ts
Runtime binding for bedrock-agent:DeleteKnowledgeBaseDocuments — remove
specific documents from the bound DataSource’s knowledge base
index.
The binding grants the function bedrock:DeleteKnowledgeBaseDocuments
scoped to the data source’s parent knowledge base.
Direct Document Ingestion
Section titled “Direct Document Ingestion”// initconst deleteDocuments = yield* Bedrock.DeleteKnowledgeBaseDocuments(dataSource);
// runtimeyield* deleteDocuments({ documentIdentifiers: [ { dataSourceType: "CUSTOM", custom: { id: "welcome-doc" } }, ],});