API Reference > imodeljs-backend > iModels > TxnManager > cancelTo cancelTo Method Reverse and then cancel (make non-reinstatable) all changes back to a previous TxnId. cancelTo(txnId: TxnIdString): IModelStatus Parameter Type Description txnId TxnIdString a TxnId obtained from a previous call to TxnManager.getCurrentTxnId Returns - IModelStatus Success if the transactions were reversed and cleared, error status otherwise. Defined in core/backend/src/IModelDb.ts Line 2276 Last Updated: 13 June, 2024