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 withConflictException, and you can retry later. ADRAFTontology 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.ThrottlingExceptionContext.Client.exceptions.ConflictExceptionContext.Client.exceptions.ValidationExceptionContext.Client.exceptions.InternalServerExceptionContext.Client.exceptions.ResourceNotFoundExceptionContext.Client.exceptions.AccessDeniedException