Office Apps Freezing

How to Fix OneNote Cleaning Up After the Last Session Message

Steve KSteve K Oct 21, 2026 877 views

Question details

Users experience a recurring 'cleaning up' message in OneNote that freezes the application and prevents printing.

How to Fix OneNote 'Cleaning Up After the Last Session' Message
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 you start

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.

Solution 1Recommended

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.

1
Close OneNote

Close OneNote completely. If it is frozen, right-click the Start menu, select Task Manager, locate Microsoft OneNote, and click End Task.

2
Open the Run dialog

Press the Windows key + R simultaneously on your keyboard to open the Run dialog box.

3
Navigate to the cache folder

Type %localappdata%\Microsoft\OneNote\16.0 (or your specific version number) into the text box and press Enter.

4
Delete the cache files

Locate the folder named 'cache', select all the files inside it, and delete them. Restart OneNote and test the printing function again.

Clear the OneNote Application Cache
Sync check: After deleting the cache, OneNote will rebuild it upon launch by downloading the latest synced versions of your notebooks from the cloud.
Free Microsoft Office alternative

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.

Lightweight architecture ensures fast launch times and prevents application freezing during tasks like printing.Fully compatible with Microsoft Office formats, including DOCX, XLSX, PPTX, and PDF.Familiar and intuitive user interface allows for a seamless migration with zero learning curve.Built-in advanced PDF editing and printing capabilities to handle all your important documents reliably.
microsoft office alternative - wps office

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.