API Reference > imodeljs-backend > ElementAspects > ElementAspect > onDelete onDelete MethodProtectedStatic Beta Called before an ElementAspect is deleted. onDelete(_props: ElementAspectProps, _iModel: IModelDb): void throws IModelError if there is a problem Parameter Type Description _props ElementAspectProps _iModel IModelDb Returns - void Defined in core/backend/src/ElementAspect.ts Line 50 Last Updated: 13 June, 2024