API Reference > iModeljs-backend > Models > Model > onDelete onDelete MethodProtectedStatic Beta Called before a Model is deleted. onDelete(arg: OnModelIdArg): void note throw an exception to disallow the delete note If you override this method, you must call super. note this is the class of the Model to be deleted Parameter Type Description arg OnModelIdArg Returns - void Defined in core/backend/src/Model.ts Line 188 Last Updated: 12 June, 2024