Delete Knowledge Base Documents
bedrockagent_delete_knowledge_base_documents | R Documentation |
Deletes documents from a data source and syncs the changes to the knowledge base that is connected to it¶
Description¶
Deletes documents from a data source and syncs the changes to the knowledge base that is connected to it. For more information, see Ingest documents into a knowledge base in real-time in the Amazon Bedrock User Guide.
Usage¶
bedrockagent_delete_knowledge_base_documents(clientToken, dataSourceId,
documentIdentifiers, knowledgeBaseId)
Arguments¶
clientToken
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 Ensuring idempotency.
dataSourceId
[required] The unique identifier of the data source that contains the documents.
documentIdentifiers
[required] A list of objects, each of which contains information to identify a document to delete.
knowledgeBaseId
[required] The unique identifier of the knowledge base that is connected to the data source.
Value¶
A list with the following syntax:
list(
documentDetails = list(
list(
dataSourceId = "string",
identifier = list(
custom = list(
id = "string"
),
dataSourceType = "CUSTOM"|"S3",
s3 = list(
uri = "string"
)
),
knowledgeBaseId = "string",
status = "INDEXED"|"PARTIALLY_INDEXED"|"PENDING"|"FAILED"|"METADATA_PARTIALLY_INDEXED"|"METADATA_UPDATE_FAILED"|"IGNORED"|"NOT_FOUND"|"STARTING"|"IN_PROGRESS"|"DELETING"|"DELETE_IN_PROGRESS",
statusReason = "string",
updatedAt = as.POSIXct(
"2015-01-01"
)
)
)
)