diff --git a/linkml_runtime/utils/schemaview.py b/linkml_runtime/utils/schemaview.py index b53ea5cf..be36c8a5 100644 --- a/linkml_runtime/utils/schemaview.py +++ b/linkml_runtime/utils/schemaview.py @@ -1696,7 +1696,7 @@ def delete_slot(self, slot_name: SlotDefinitionName) -> None: :param slot_name: slot to be deleted :return: """ - del self.schema.slotes[slot_name] + del self.schema.slots[slot_name] self.set_modified() def delete_enum(self, enum_name: EnumDefinitionName) -> None: @@ -1704,7 +1704,7 @@ def delete_enum(self, enum_name: EnumDefinitionName) -> None: :param enum_name: enum to be deleted :return: """ - del self.schema.enumes[enum_name] + del self.schema.enums[enum_name] self.set_modified() def delete_type(self, type_name: TypeDefinitionName) -> None: @@ -1720,7 +1720,7 @@ def delete_subset(self, subset_name: SubsetDefinitionName) -> None: :param subset_name: subset to be deleted :return: """ - del self.schema.subsetes[subset_name] + del self.schema.subsets[subset_name] self.set_modified() # def rename(self, old_name: str, new_name: str):