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: string): IModelStatus Parameter Type Description txnId string 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/TxnManager.ts Line 431 Last Updated: 11 June, 2024