API Reference > imodeljs-backend > iModels > TxnManager > reverseTxns reverseTxns Method Reverse (undo) the most recent operation(s) to this IModelDb. reverseTxns(numOperations: number): IModelStatus note If there are any outstanding uncommitted changes, they are reversed. note The term "operation" is used rather than Txn, since multiple Txns can be grouped together via TxnManager.beginMultiTxnOperation. So, even if numOperations is 1, multiple Txns may be reversed if they were grouped together when they were made. note If numOperations is too large only the operations are reversible are reversed. Parameter Type Description numOperations number the number of operations to reverse. If this is greater than 1, the entire set of operations will be reinstated together when/if ReinstateTxn is called. Returns - IModelStatus Defined in core/backend/src/TxnManager.ts Line 410 Last Updated: 12 June, 2024