deleteKnowledgeBase method

Future<void> deleteKnowledgeBase({
  1. required String knowledgeBaseId,
})

Deletes the knowledge base.

May throw AccessDeniedException. May throw ConflictException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter knowledgeBaseId : The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.

Implementation

Future<void> deleteKnowledgeBase({
  required String knowledgeBaseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/knowledgeBases/${Uri.encodeComponent(knowledgeBaseId)}',
    exceptionFnMap: _exceptionFns,
  );
}