To delete an Excel file online, find it in the OneDrive or SharePoint location where it is stored, select the file, and choose Delete. Excel for the web edits workbooks, but the file is usually removed through its online storage service. Before deleting, check that you have the right file and that you are comfortable removing it for anyone who shares that file.
What You’ll Need
- A web browser and access to the Microsoft account or work or school account that stores the workbook.
- Permission to delete the file. In a shared workplace, your organization may limit who can remove files.
- The workbook’s name or folder location, so you can distinguish it from similarly named files.
- If you might need the workbook later, a safe copy saved somewhere you can access. Do not rely on the recycle bin as a permanent backup.
Step-by-Step
- Check where the workbook is stored. If the file is open in Excel for the web, note its name and, if available, its folder or location. A personal workbook is commonly in OneDrive. A work or school workbook may be in OneDrive for work or school or in a SharePoint document library. The location matters because deleting a shared workbook can affect other people.
- Save any changes and close the workbook. Excel for the web normally saves changes automatically, but wait for any saving indicator to finish before leaving the page. Closing the workbook is not required in every case, but it helps avoid confusion about whether recent edits were saved. If other people are editing the workbook, let them know before removing it.
- Open the correct storage service in your browser. For OneDrive, open OneDrive using the Microsoft 365 app launcher or navigate to your OneDrive account and sign in. For a workbook kept in SharePoint, open the relevant team site and its document library, often named Documents. Use the same account that you use in Excel; signing in with a personal account instead of a work account can make the file seem to be missing.
- Browse to the workbook’s folder. Use the folder list or the search box to find the Excel file. Search by its full or partial name, and check the folder path and file name before taking action. Excel workbooks commonly have an
.xlsx,.xlsm, or.xlsextension, though file extensions may be hidden in the list. - Select the file, not a folder or a different workbook. In OneDrive or a SharePoint library, click the circle or checkbox beside the file name. In some layouts, selecting a row reveals a toolbar. If the file is already open in Excel, return to the storage list to select it there rather than looking for a delete command in the worksheet grid.
- Choose Delete. Click Delete in the toolbar or open the file’s context menu, commonly with the three-dot button, and choose Delete. The exact position of the command can differ between OneDrive layouts and SharePoint sites. If you do not see it, check the context menu and confirm that you have selected the file itself.
- Confirm the action if prompted. Read the confirmation message and check the file name. Confirm only if you intend to remove that workbook. The file should disappear from the folder or list, and a notice may offer an undo option for a short time. Do not assume a notice means the file has been permanently erased; it may have been moved to a recycle bin.
- Check the result and consider who else is affected. Refresh the folder or search again to confirm the file is no longer in its original location. If it was stored in a shared OneDrive or SharePoint location, tell collaborators that it has been removed and explain how to restore it if the deletion was accidental. If you need the workbook back, use the relevant recycle bin promptly.
If you started from Excel for the web: use the workbook’s name or location to find it in OneDrive or SharePoint. The workbook’s File menu is for working with the open workbook; for a dependable way to remove the stored file, return to its file list and use that service’s Delete command.
Common Mistakes
- Deleting the wrong copy. A workbook may have duplicate names, such as a personal copy and a team copy. Compare the folder location and, when available, the modified date before deleting.
- Assuming that removing a shortcut deletes the original. A file shown under a shared or shortcut view may be a link to a file stored elsewhere. Check its actual location and make sure you understand whether you are removing a shortcut or deleting the stored workbook.
- Thinking Delete means permanent erasure. In many OneDrive and SharePoint setups, deletion moves a file to a recycle bin first. The file may remain recoverable for a limited time, and organizational retention settings may affect what happens next.
- Forgetting the effect on collaborators. Deleting a workbook from a shared location can prevent other people from opening it at its original address. If the goal is only to stop your own access, deleting the shared file may be the wrong choice.
- Deleting before recent edits finish saving. If the workbook is still saving, removing it can cause uncertainty about the latest changes. Wait for saving to finish, and make a separate copy first if the edits are important.
- Using the wrong Microsoft account. A personal Microsoft account and a work or school account can have separate OneDrive storage. Check the account avatar or profile menu before deciding that the file has disappeared.
Tips
- Make a backup when in doubt. Download a copy or use the storage service’s copy option before deletion if you may need the workbook later. Open the copy if practical to confirm it is the right file.
- Use a clear search and verify the path. Search is useful for large folders, but a matching name alone is not enough. Look at the surrounding folder names and file details before selecting Delete.
- Coordinate with other users. For a workbook used by a team, agree on whether it should be deleted, archived, or moved. Moving it to an archive folder may preserve access and links better than deleting it, depending on your setup.
- Know the difference between deleting and closing. Closing an Excel browser tab only closes your view; it does not delete the workbook. Deleting it from OneDrive or SharePoint removes it from its stored location.
- Act quickly if you change your mind. Use an undo notice immediately if one appears, or restore the workbook from the appropriate recycle bin. Recovery options and retention periods can vary by account and organization.
- Ask an administrator about managed work files. Work or school accounts may apply retention, sharing, or deletion policies. Those settings can affect who can restore a file and how long it remains recoverable.
Troubleshooting
You cannot find the workbook. Confirm that you are signed in with the account that owns or has access to it. Search OneDrive and the relevant SharePoint site separately, and check likely folders such as Documents. If you opened it from a recent-files list, that list may point to a file in a different account or site. Ask the person who shared it to confirm its current location.
There is no Delete command. Make sure you selected the file row rather than opening the workbook or selecting only its name as a link. Try the three-dot context menu or the toolbar after selecting the row. If Delete is still missing or disabled, you may have view-only access, the owner may have restricted your permissions, or your organization may control file deletion. Contact the owner or Microsoft 365 administrator rather than trying to work around the restriction.
The file is still visible after deletion. Refresh the page and check that you deleted the right item. It may be a shortcut, a separate copy, or a file in another folder with the same name. If the file is in a shared location, another copy may also be listed in a different location. Check the file’s location and ask its owner if you are unsure which copy is active.
You deleted it by accident. In OneDrive, open the recycle bin from the navigation pane, select the workbook, and choose Restore. For SharePoint, open the site’s recycle bin if you have access, select the item, and choose Restore. A restored file generally returns to its previous location, but access and retention rules can affect the process. If it is not there, check whether you are in the right account and ask your administrator about any additional recovery options.
The workbook is not in the recycle bin. Check the correct service and account first: a file deleted from SharePoint may be in that site’s recycle bin rather than your personal OneDrive bin. In a work or school environment, ask the site owner or administrator whether a secondary recycle bin or retention policy applies. Recovery may not be possible after the applicable retention period or if the file was permanently deleted.
Someone else still has the workbook open. Deleting a shared file does not necessarily close a copy or browser tab that another person already has open. Tell collaborators that the stored file has been removed. If the workbook must remain available, restore it or coordinate a replacement in the agreed shared folder.
Frequently Asked Questions
Can I delete an Excel file directly from Excel for the web?
For a reliable deletion, use the OneDrive or SharePoint file list where the workbook is stored. Excel for the web is where you edit the workbook; the storage service is where you manage and delete the file.
Will deleting a shared workbook delete it for everyone?
If you delete the actual workbook from a shared OneDrive or SharePoint location, other people may lose access to it at that location. Removing a shortcut or your own link can be different. Check the file’s location and ownership before deleting, and notify collaborators.
Can I recover an Excel file after deleting it online?
Often, yes. Check the recycle bin for the service where the file was stored and restore it if it is listed. Recovery is not guaranteed: the item may have been permanently deleted, the retention period may have passed, or your organization may control restoration.
Does closing the browser tab delete my workbook?
No. Closing a tab only closes the page. If Excel has finished saving, the workbook remains in its OneDrive or SharePoint location until someone deletes or moves it.
Can I delete a workbook if I only have a sharing link?
Usually, a link does not give you permission to delete the original file. If you are not the owner or do not have the necessary access, ask the owner to remove it. You may be able to stop using or remove a link from your own view, but that is not the same as deleting the stored workbook.
Is deleting a workbook the same as removing it from Recent?
No. Removing an entry from a recent-files list hides or clears that listing; it does not necessarily remove the workbook from OneDrive or SharePoint. To delete the actual file, locate it in its storage folder and use Delete.
Related
- How to Copy Border Formatting in Excel to Other Cells
- Copy and Paste in Excel While Keeping Formatting
- Copy and Paste Split Cells in Excel: A Practical Guide
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Track Changes Options in Microsoft Word: Where to Find ThemTo get to Track Changes options in Microsoft Word for Microsoft 365 on Windows, open the document, select…
- Excel Color Scales: How Conditional Formatting WorksIn Excel for Microsoft 365 on Windows, color scale conditional formatting shades cells according to their numeric values,…
- Excel Group Rows With a Header on Top in Microsoft 365To group rows in Excel while keeping a header visible, leave the header row outside the group: select…
- How to Remove Duplicates in Google SheetsTo remove duplicate rows in Google Sheets, select your whole data range, then choose Data > Data cleanup…
- INDEX MATCH in Google Sheets: How It Works and ExamplesYes. Google Sheets supports both INDEX and MATCH, and combining them lets you find a value in one…
- How to Schedule an Email in OutlookTo schedule an email in Outlook, write your message, open the menu beside Send, and choose Schedule send…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.