API Reference > imodeljs-backend > iModels > TxnManager > restartSession restartSession Method Restart the current TxnManager session. This causes all Txns in the current session to no longer be undoable (as if the file was closed and reopened.) restartSession(): void note This can be quite disconcerting to the user expecting to be able to undo previously made changes. It should only be used under extreme circumstances where damage to the file or session could happen if the currently committed are reversed. Use sparingly and with care. Probably a good idea to alert the user it happened. Returns - void Defined in core/backend/src/TxnManager.ts Line 363 Last Updated: 11 June, 2024