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.

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 October, 2026