Context / Client / delete_ontology

delete_ontology

Context.Client.delete_ontology(**kwargs)

Deletes an ontology that you own and all of its versions. You can’t delete an AWS managed ontology. While an agent context maps the ontology, the request fails with ConflictException. Remove the ontology from the agent context’s connection mappings with UpdateAgentContext first. If an agent context mapped the ontology in the last 5 minutes, the request also fails with ConflictException, and you can retry later. A DRAFT ontology that an induction created is deleted together with its induction. Deleting an ontology that is already deleted succeeds. AWS Context never reuses the ID of a deleted ontology.

See also: AWS API Documentation

Request Syntax

response = client.delete_ontology(
    ontologyId='string'
)
Parameters:

ontologyId (string) –

[REQUIRED]

The ontology to delete, by its ID or ARN. ListOntologies and GetOntology return its ARN.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Context.Client.exceptions.ThrottlingException

  • Context.Client.exceptions.ConflictException

  • Context.Client.exceptions.ValidationException

  • Context.Client.exceptions.InternalServerException

  • Context.Client.exceptions.ResourceNotFoundException

  • Context.Client.exceptions.AccessDeniedException