OneDrive File Issues

How to Remove a Phishing Attachment from OneNote and OneDrive

John WilsonJohn Wilson Oct 29, 2026 870 views

Question details

The user needs to permanently remove a suspicious phishing attachment that continues to appear in a OneNote page even after it was deleted from a shared OneDrive folder.

How to Remove a Phishing Attachment from OneNote and OneDrive
Product
Microsoft OneNote, OneDrive
Device & OS
not provided
Scenario
Dealing with a phishing attempt where a malicious file is embedded inside a synced notebook.
Observed behavior
The phishing attachment persists on the OneNote page despite being removed from the corresponding OneDrive sharing folder.
Before you start

Do not click, open, or interact with the suspicious attachment under any circumstances. If you suspect the file might execute automatically, temporarily disconnect your device from the internet before proceeding.

Solution 1Recommended

Delete the Attachment Directly from the OneNote Page

This is the most effective method to remove embedded files that have cached themselves in OneNote and persist after a OneDrive deletion.

When files are embedded into a OneNote page, they often create a localized copy within the notebook's data structure. Deleting the source file in a OneDrive shared folder does not automatically erase this embedded instance, requiring manual removal from the page itself.

1
Open the Affected OneNote Page

Navigate to the specific notebook, section, and page in OneNote where the suspicious attachment is currently embedded.

2
Delete the Embedded File

Carefully click the attachment icon once to select it (do not double-click). Press the 'Delete' or 'Backspace' key on your keyboard. You can also right-click the file and choose 'Delete'.

3
Empty the OneDrive Recycle Bin

Log into OneDrive on the web browser. Click on 'Recycle bin' in the left navigation pane, locate the original suspicious file if it is there, and click 'Empty recycle bin' or select the file and click 'Delete' to permanently erase it.

4
Run a Complete Antivirus Scan

Open Microsoft Defender or your preferred antivirus software and initiate a 'Full Scan' to ensure no malicious scripts or malware were silently downloaded to your system.

Delete the Attachment Directly from the OneNote Page
Security Precaution: Running a full system antivirus scan after deleting the file guarantees that your device remains uncompromised.
Free Microsoft Office alternative

Experience a Secure and Lightweight Document Workflow with WPS Office

Looking for a safe, reliable, and easy-to-manage office suite? WPS Office provides a lightweight, ad-free experience with robust file security and seamless compatibility with Microsoft formats, ensuring your documents remain safe from unexpected embedded threats.

  1. 1. Download the Installer: Visit the official WPS website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to complete the setup.
  3. 3. Open and Edit Securely: Launch WPS Office to securely open your existing Microsoft Office files without worrying about formatting issues.
Highly secure environment for opening, editing, and managing your daily documents.Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Built-in secure cloud storage to safely back up and synchronize your files across devices.Lightweight installation with a user-friendly, familiar interface that makes migration effortless.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the attachment still show in OneNote after I deleted it from OneDrive?

OneNote often caches embedded files locally or syncs them directly into the page's data structure. Deleting the source file in a OneDrive folder only removes the external link, not the embedded copy residing on the OneNote page itself.

What should I do if I accidentally clicked the phishing attachment?

Immediately disconnect your device from the internet to prevent further malicious downloads. Run a full system antivirus scan, and change your Microsoft account passwords from a different, known-secure device.

Can I recover a file if I accidentally deleted the wrong attachment in OneNote?

Yes. You can check the 'Deleted Notes' section located under the 'View' tab in OneNote to recover the page elements, or check your OneDrive Recycle Bin to restore accidentally deleted files within 30 days.

How can I prevent phishing attachments from being shared with me on OneDrive?

Adjust your OneDrive sharing settings to restrict who can share files with you. Always verify the sender's identity before opening shared folders, avoid clicking links from unknown senders, and regularly review your 'Shared with me' directory.