onDeleteElements MethodProtected

Adds roots required by code-scope dependencies, then deletes the target element trees in as few native operations as their references allow. Usually one native operation is enough. When a tree contains a definition, such as a category, that another deleted element uses, the elements that use it are deleted first. Elements that something outside the deleted trees still references are kept, with a warning, and the rest are deleted. When native validation refuses elements that something still uses in a way the importer can't check in advance, such as a geometry part that geometry outside the deleted trees places, those elements are kept as well, with a warning, and the rest are deleted.

onDeleteElements(elementIds: ReadonlySet<string>): Promise<void>

@note An override must call super.onDeleteElements once to perform the deletion.

Parameter Type Description
elementIds ReadonlySet<string>  

Returns - Promise

Defined in

Last Updated: 06 November, 2026