How to Remove Trojan-Related Content from a OneNote Notebook
Question details
The user needs to safely remove Trojan-related content triggering an antivirus alert in a OneNote notebook without losing unsynchronized notes.

- Product
- Microsoft OneNote
- Device & OS
- Windows
- Scenario
- Resolving a persistent antivirus threat alert linked to a specific OneNote section or cache folder.
- Observed behavior
- An antivirus program flags a OneNote section or cache file as dangerous due to a suspicious link, embedded file, or attachment.
Ensure all your OneNote notebooks are fully synchronized to the cloud before attempting any fixes, as unsynchronized notes will be permanently lost if you clear the cache.
Inspect and Remove Suspicious Note Elements
Manually identify and delete the malicious links or embedded attachments triggering the antivirus.
Antivirus alerts in OneNote are often caused by embedded malicious files or suspicious links pasted into a page. Removing the specific element usually resolves the threat without risking data loss.
Open OneNote, right-click the affected notebook, and select 'Sync This Notebook Now' to back up all safe content.
Navigate to the specific notebook section that your antivirus software identified in its threat log.
Look for unknown embedded files, unexpected attachments, or suspicious hyperlinks. Right-click the suspicious element and select 'Delete' to remove it from the page.
Go to the 'History' tab, click 'Notebook Recycle Bin', and select 'Empty Recycle Bin' to permanently delete the malicious content.
Perform a full system scan with your updated antivirus software to ensure the threat is completely removed.

Clear the OneNote Local Cache
If the antivirus alert persists after deleting the content, the malicious file might be stuck in the local cache directory.
Try WPS Office for Secure and Lightweight Document Management
If you are experiencing ongoing security alerts, syncing issues, or performance problems with Microsoft Office, consider switching to WPS Office. It provides a secure, lightweight, and highly compatible alternative for managing your daily tasks.
- 1. Download the software: Visit the official WPS Office website to download the free installation package.
- 2. Install and launch: Follow the on-screen instructions to install WPS Office, then launch the application.
- 3. Import and work securely: Open your existing Microsoft Office files directly in WPS Office and enjoy a secure, seamless editing experience.

Frequently Asked Questions
How do I know which OneNote section is causing the antivirus alert?
You can identify the problematic section by checking the quarantine or threat history log in your antivirus software. The log will usually display the file path, which often includes the name of the specific notebook or section where the threat was detected.
Will clearing the OneNote cache delete my notebooks?
Clearing the cache will not delete notebooks that are safely stored and synchronized on OneDrive. However, it will permanently erase any offline changes or notes that have not yet synced to the cloud.
Can OneNote files actually contain viruses?
While the OneNote text itself cannot contain a virus, malicious files, scripts, or dangerous hyperlinks can be embedded or attached as objects onto a OneNote page. When these sync to your computer, your antivirus software may flag them.
Should I disable my antivirus to stop the OneNote alerts?
No, you should avoid disabling your security protections. If an alert is triggered, it is highly likely that a malicious file is embedded in your notebook. Disabling the antivirus could allow the Trojan to execute and infect your system.




