delete_content
¶
delete_content(
knowledge_base_id: UuidOrArn,
content_id: UuidOrArn,
*,
config_overrides: Optional[QConnectClientConfig] = None,
) -> DeleteContentResponse
Deletes the content.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
content_id(UuidOrArn) –The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
ResourceNotFoundException–The specified resource does not exist.
-
UnauthorizedException–You do not have permission to perform this action.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.