API Reference > imodeljs-backend > Relationships > Relationship > onDeletedDependency onDeletedDependency MethodStatic Callback invoked by saveChanges on an ElementDrivesElement relationship when the relationship instance has been deleted. A subclass of ElementDrivesElement can re-implement this static method to take some action. onDeletedDependency(_props: RelationshipProps, _iModel: IModelDb): void Parameter Type Description _props RelationshipProps The deleted ElementDrivesElement relationship instance. _iModel IModelDb The iModel Returns - void Defined in core/backend/src/Relationship.ts Line 59 Last Updated: 11 June, 2024