How to Fix OneNote Cleaning Up After the Last Session Message
Question details
Users experience a recurring 'cleaning up' message in OneNote that freezes the application and prevents printing.

- Product
- Microsoft OneNote
- Device & OS
- Windows
- Scenario
- Attempting to print a document or page from Microsoft OneNote.
- Observed behavior
- OneNote freezes and repeatedly displays a 'Cleaning up after the last session' message, preventing the user from completing the print job.
Before clearing your cache or repairing the installation, ensure that all your recent OneNote notebooks are fully synced to OneDrive to prevent any accidental data loss.
Clear the OneNote Application Cache
Clearing corrupted cache files is the most effective way to resolve persistent startup and printing hangs in OneNote.
When OneNote unexpectedly shuts down, its local cache can become corrupted, leading to the continuous cleaning up message during resource-intensive tasks like printing.
Close OneNote completely. If it is frozen, right-click the Start menu, select Task Manager, locate Microsoft OneNote, and click End Task.
Press the Windows key + R simultaneously on your keyboard to open the Run dialog box.
Type %localappdata%\Microsoft\OneNote\16.0 (or your specific version number) into the text box and press Enter.
Locate the folder named 'cache', select all the files inside it, and delete them. Restart OneNote and test the printing function again.

Repair the Microsoft Office Installation
If clearing the cache fails to resolve the message, the application files may be damaged and require a system-level repair.
Switch to WPS Office for a Stable Document Experience
If Microsoft Office applications continue freezing or displaying recurring errors, consider switching to WPS Office. It provides a highly compatible and lightweight alternative for your document, spreadsheet, and presentation needs without the frustrating system hangs.

Frequently Asked Questions
Why does OneNote keep saying it is cleaning up after the last session?
This message usually appears when OneNote was closed unexpectedly or force-quit during its previous session. Corrupted cache data or damaged installation files prevent the app from resolving its startup sequence, causing it to loop this message when trying to print.
Will clearing the OneNote cache delete all my notes?
Clearing the cache only deletes temporary offline files. As long as your notebooks are properly synced to your Microsoft OneDrive account, your notes are safe and will automatically reload from the cloud once you reopen the application.
What should I do if repairing OneNote does not fix the freezing?
If both Quick Repair and Online Repair fail to resolve the message, the core installation may be deeply corrupted. You will need to completely uninstall Microsoft 365 or OneNote via Windows Settings, restart your computer, and reinstall the latest version from the official Microsoft website.




