deleteContent method
Deletes the content.
May throw AccessDeniedException.
May throw ConflictException.
May throw ResourceNotFoundException.
May throw UnauthorizedException.
May throw ValidationException.
Parameter contentId :
The identifier of the content. Can be either the ID or the ARN. URLs
cannot contain the ARN.
Parameter knowledgeBaseId :
The identifier of the knowledge base. Can be either the ID or the ARN.
URLs cannot contain the ARN.
Implementation
Future<void> deleteContent({
required String contentId,
required String knowledgeBaseId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/knowledgeBases/${Uri.encodeComponent(knowledgeBaseId)}/contents/${Uri.encodeComponent(contentId)}',
exceptionFnMap: _exceptionFns,
);
}