How to Stop OneNote .onetoc2 Files From Appearing in Folders
Question details
The user wants to permanently stop Microsoft OneNote from generating .onetoc2 index files in various local and shared folders.
- Product
- Microsoft OneNote
- Device & OS
- not provided
- Scenario
- Managing files on local drives and shared company networks where hidden or index files are unexpectedly appearing.
- Observed behavior
- OneNote automatically generates .onetoc2 files in folders. Deleting them is only a temporary fix, as the application continually recreates them.
Before modifying application settings or deleting system files, verify whether anyone on your shared network actively uses Microsoft OneNote for collaboration, as removing these notebook connections could impact their workflow.
Close the Associated OneNote Notebook
Stop OneNote from actively syncing to the directory by manually closing the active notebook linked to that folder.
The .onetoc2 file is a OneNote Table of Contents file. It is automatically generated when a folder is opened as a OneNote notebook. Even if you aren't actively using OneNote, having the notebook open in the background will cause the application to repeatedly recreate the deleted .onetoc2 file.
Launch the OneNote desktop application on your computer. If you have multiple versions installed (like OneNote for Windows 10 and OneNote 2016), check both.
Click on the Notebooks dropdown menu located at the top left of the screen to view all currently open notebooks.
Right-click the notebook that corresponds to the local or shared network folder where the .onetoc2 files are appearing, and select 'Close This Notebook' from the context menu.
Navigate back to your local or shared folder in Windows File Explorer and delete the .onetoc2 file. It should no longer reappear.

Disable OneNote Background and Startup Processes
Prevent OneNote from launching automatically upon system boot and running hidden sync processes.
Consult IT Support Regarding Shared Drive Policies
Address shared network drive syncing that may be enforced by your organization's administrative policies.
Switch to WPS Office for a Clutter-Free Experience
If background processes and automatic index files from Microsoft Office are disrupting your file management, consider switching to WPS Office. It provides a lightweight, highly compatible alternative without the heavy background syncing overhead.
- 1. Download the Installer: Visit the official WPS website and click the download button to get the latest version of WPS Office.
- 2. Install WPS Office: Run the downloaded executable file and follow the straightforward on-screen prompts to complete the installation.
- 3. Open Your Documents: Launch WPS Office to easily open, edit, and save your existing Office files without dealing with unnecessary background sync files.

Frequently Asked Questions
What exactly is a .onetoc2 file?
A .onetoc2 file is an index or 'Table of Contents' file created by Microsoft OneNote. It is used to keep track of the organization, order, and structure of notes and sections within a specific notebook folder, helping the application load the data efficiently.
Can I safely delete .onetoc2 files without losing data?
Yes, deleting a .onetoc2 file will not delete your actual notes or files. However, if the folder is still actively connected to OneNote, the application will automatically recreate the index file the next time it opens or syncs.
Why are these files appearing on my shared network drive?
If any user on your company network opens a folder on the shared drive using OneNote, the application generates a .onetoc2 file in that directory to maintain the notebook's index for everyone accessing it.
How do I completely uninstall OneNote to stop this behavior?
If you have a standalone version of OneNote, you can remove it by going to Windows Settings > Apps > Installed apps, locating OneNote, and clicking Uninstall. If OneNote is integrated into an enterprise Microsoft Office suite, you may need IT administrator rights to modify the installation and remove the component.




