requestResourcesForDelete Method

Beta  

Request the locks and/or Codes that will be required to delete the specified elements and/or models. This is a convenience method. It builds a request and sends it to the iModel server. It does not delete the elements or models.

requestResourcesForDelete(ctx: AuthorizedClientRequestContext, elements: ElementProps[], models?: ModelProps[], relationships?: RelationshipProps[]): Promise<void>

Parameter Type Description
ctx AuthorizedClientRequestContext RequestContext
elements ElementProps[] The elements that will be deleted
models ModelProps[] The models that will be delete
relationships RelationshipProps[] The relationships that will be deleted
See ConcurrencyControl.requestResources, ConcurrencyControl.requestResourcesForUpdate, ConcurrencyControl.requestResourcesForInsert

Returns - Promise<void>

Defined in

Last Updated: 11 June, 2024