API Reference > imodeljs-backend > Elements > Element > onDelete onDelete MethodProtectedStatic Beta Called before an Element is deleted. onDelete(props: ElementProps, iModel: IModelDb): void throws IModelError if there is a problem note Any class that overrides this method must call super. Parameter Type Description props ElementProps iModel IModelDb Returns - void Defined in core/backend/src/Element.ts Line 127 Last Updated: 13 June, 2024