abandonAllLocks @beta

abandonAllLocks: (arg: BriefcaseIdArg) => Promise<void> | undefined

Abandons all currently held locks when none of the associated elements have been or will be modified. It is only valid to call this method when none of the elements protected by the locks have been edited, or if all edits have been reversed or abandoned without pushing them.

The locks are released on the IModelHub, but the changeset associated with the locks is not updated.

This method is optional, so not all IModelHubs will implement it. If this method is not implemented explicitly by an IModelHub, it will be implemented implicitly by calling releaseAllLocks, passing changeset.id="" and changeset.index=0 in the first argument to indicate that the lock state should change without updating the changeset associated with the locks.

Defined in

Last Updated: 20 April, 2026