reverseAllTxnsAsync Method @beta

Reverse (undo) all operations back to the beginning of the session. By default, this method also abandons the locks that were acquired for those operations.

reverseAllTxnsAsync(args?: ReverseTxnArgs): Promise<void>

@note This method will also abandon locks associated with any later, reversed Txns, if they have not already been abandoned. For example, if a call to reverseTxns reverses Txn 2 without abandoning its locks, and then this method is called to reverse Txn 1, it will abandon the locks associated with both Txn 1 and Txn 2.

@note If there are any outstanding uncommitted changes, they are reversed.

@note If there are no reversible operations, this method does nothing and returns Success.

@returns A Promise that resolves to success if the transactions were reversed, or rejects with an IModelError otherwise.

Parameter Type Description
args ReverseTxnArgs Optional arguments to control the behavior of the reverse operation, such as whether to retain locks.

Returns - Promise

A Promise that resolves to success if the transactions were reversed, or rejects with an IModelError otherwise.

Defined in

Last Updated: 22 April, 2026