API Reference > imodeljs-backend > Elements > Element > onSubModelDelete onSubModelDelete MethodProtectedStatic Beta Called when a sub-model of an instance of this class is being deleted. onSubModelDelete(_arg: OnSubModelIdArg): void note throw an exception if model should not be deleted note this is the class of Element that is sub-modeled. Parameter Type Description _arg OnSubModelIdArg Returns - void Defined in core/backend/src/Element.ts Line 340 Last Updated: 12 June, 2024