deleteElement Method
Deprecated in 5.9.0 - might be removed in next major version. Use EditTxn.deleteElement instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
Delete one or more elements from this iModel.
deleteElement(ids: Id64Arg): void
@throws ITwinError
@see IModelDb.Elements.deleteDefinitionElements
| Parameter | Type | Description |
|---|---|---|
| ids | Id64Arg | The set of Ids of the element(s) to be deleted |
Returns - void
Defined in
- backend/src/IModelDb.ts Line 3106
Last Updated: 05 September, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.