How to Delete a File From Excel (And What That Actually Means)
Excel is a spreadsheet application — not a file manager. That distinction matters a lot when someone searches "how to delete a file from Excel," because the answer depends entirely on what you're trying to delete and where that file lives.
This guide breaks down the realistic scenarios, what Excel actually lets you do, and where the limits are.
What "Deleting a File From Excel" Usually Means
When people ask this question, they typically mean one of three things:
- Deleting a recently opened file from Excel's Recent Files list
- Deleting an attached or embedded file from inside a workbook
- Deleting the actual Excel file from their device or cloud storage
Each of these works differently, and confusing them leads to frustration. Excel's interface touches on all three, but it only fully controls one of them.
Removing a File From Excel's Recent Files List 🗂️
Excel keeps a running list of recently opened workbooks. If you want to remove a file from that list — without deleting the actual file from your computer — here's how:
- Open Excel and go to File > Open > Recent
- Right-click the file you want to remove from the list
- Select Remove from list
That's it. The file stays wherever it's saved (your desktop, a folder, OneDrive, etc.) — it just disappears from the Recent Files panel.
Pinned files won't show this option by default. You'll need to unpin them first (right-click > Unpin from list), then remove them.
If you want to clear the entire Recent Files history, that setting lives under File > Options > Advanced > Display > Show this number of Recent Workbooks, where you can set the count to zero.
Deleting an Embedded or Attached File Inside a Workbook
Excel allows users to embed objects directly into a spreadsheet — PDFs, Word documents, images, even other Excel files. These are embedded using Insert > Object or Insert > Attach File (in some versions).
To delete an embedded file object:
- Click on the embedded object icon inside the spreadsheet to select it
- Press the Delete key
That removes the embedded object from the workbook. The original file on your computer is not affected — you're only removing the embedded copy within that workbook.
What Makes This Tricky
If the object is grouped with other elements (shapes, charts, text boxes), selecting just the embedded file requires clicking carefully or using the Selection Pane under Home > Find & Select > Selection Pane. From there, you can highlight individual objects and delete them precisely.
Deleting the Actual Excel File From Your Device
Excel itself doesn't have a "delete this file" button for local storage. To delete an Excel workbook from your computer, you need to go outside of Excel:
- Windows: Right-click the file in File Explorer > Delete (moves it to Recycle Bin), or select it and press Delete
- Mac: Right-click in Finder > Move to Trash
You cannot delete an open file this way. Close the workbook in Excel first, then delete it through your operating system's file manager.
Deleting an Excel File Stored in OneDrive or SharePoint 🔒
If your workbook is saved to OneDrive or SharePoint, the process changes depending on how you're accessing it.
| Access Method | How to Delete |
|---|---|
| OneDrive web app | Right-click file > Delete |
| OneDrive desktop sync folder | Delete via File Explorer (syncs to cloud) |
| SharePoint web | Select file > Delete in the toolbar |
| Excel Online | Can't delete the file from within the app — go to the SharePoint/OneDrive library |
One important nuance: deleting a file from OneDrive or SharePoint moves it to the cloud recycle bin, not your local one. Recovery is possible for a set retention period (typically 93 days for SharePoint, 30 days for personal OneDrive, though admin settings vary).
Variables That Change the Answer
Several factors determine which of these methods applies to your situation:
Where the file is saved — Local drives, OneDrive, SharePoint, and network drives all have different deletion workflows.
Your version of Excel — Excel 2016, 2019, Microsoft 365, and Excel for Mac each have slightly different menu layouts. Excel Online (the browser version) has fewer controls than the desktop app.
Your permissions — In shared or organizational environments, you may not have permission to delete files, especially on SharePoint. Admin-controlled settings can restrict deletion.
Whether the file is open — Operating systems lock open files, preventing deletion until they're closed.
Whether it's shared with others — Deleting a shared workbook from SharePoint or OneDrive removes access for everyone it was shared with, not just yourself.
The Difference Between Hiding, Removing, and Deleting
These three actions are frequently confused:
- Hiding a sheet inside a workbook ≠ deleting anything
- Removing from Recent Files = cosmetic; the file still exists
- Deleting the file = permanent removal (or at minimum, trash/recycle bin)
Understanding which outcome you actually want is the first step — and that depends on whether your goal is privacy, organization, storage cleanup, or something else entirely.
Each scenario described here is straightforward in isolation. Where it gets personal is in the combination of your Excel version, your storage setup (local vs. cloud), your role permissions, and exactly what you're trying to accomplish — because those variables together define which path is actually available to you. 📁