deleteElements Method @beta
Deprecated in 5.1.9 - might be removed in next major version. Use EditTxn.deleteElements instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
Delete multiple elements from the iModel in a single bulk operation. See deleteElements.
deleteElements(ids: Id64Array, deleteOptions?: BulkDeleteElementsArgs): BulkDeleteElementsResult
@returns A result object describing the outcome of the operation and the elements that block it (if any).
@throws ITwinError if any of the supplied ids are not well-formed/valid Id64Strings.
| Parameter | Type | Description |
|---|---|---|
| ids | Id64Array | The ids of the elements to delete. All ids must be well-formed and valid Id64Strings. |
| deleteOptions | BulkDeleteElementsArgs | Deprecated and ignored; kept for backward compatibility of the signature. |
Returns - BulkDeleteElementsResult
A result object describing the outcome of the operation and the elements that block it (if any).
Defined in
- backend/src/IModelDb.ts Line 3185
Last Updated: 05 November, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.