What happens when you delete an ontology
After you delete an ontology, the following changes take effect:
-
GetOntologyreturnsResourceNotFoundExceptionfor the ontology’s ID. -
ListOntologiesdoesn’t return the ontology. -
AWS Context never reuses the ontology’s ID.
-
No connection mapping changes, because
DeleteOntologyrefuses an ontology that a connection mapping uses. -
An Agent Context that you associated the ontology with for grounding keeps the ontology’s loaded schema and its grounding links.
-
An induction that the ontology was published from stays in your account. For more information, see Deleting an ontology that came from an induction.
AWS CloudTrail records the deletion as a DeleteOntology event. The event includes the ontology ID in requestParameters and the ontology ARN in resources. CloudTrail also records CreateOntology, GetOntology, and UpdateOntology calls. To find who deleted an ontology and when, search your CloudTrail event history for DeleteOntology events. For more information, see Logging AWS Context API calls using AWS CloudTrail.
Next steps
After you delete an ontology, you can do the following:
-
Create a replacement ontology. For more information, see Bring your own ontology or Induce an ontology from documents.
-
Ground AWS Glue Data Catalog tables in the replacement ontology. For more information, see Grounding structured data in an ontology.