API Reference > iModeljs-backend > Models > Model > onDelete onDelete MethodProtectedStatic Beta Called before a model is deleted. onDelete(props: ModelProps, iModel: IModelDb): void throws IModelError if there is a problem Parameter Type Description props ModelProps iModel IModelDb Returns - void Defined in core/backend/src/Model.ts Line 114 Last Updated: 13 June, 2024