To delete an Excel file online, open the OneDrive or SharePoint location where it is stored, select the workbook, choose Delete, and confirm. The file usually moves to that location’s recycle bin, where it may be recoverable for a limited time. Deleting a workbook is different from clearing cells or deleting a worksheet: it removes the whole file from its online storage location. Before you start, make sure you have the right workbook and permission to delete it.
What You’ll Need
- A web browser and internet connection, plus the Microsoft account you use for the file. Personal files are commonly in OneDrive; work or school files may be in OneDrive, a SharePoint site, or a Teams channel.
- The workbook’s name or a way to identify it. If you are unsure, check its folder, owner, or modified date before deleting.
- Delete permission for the file or its folder. If you do not own a shared workbook, you may be able to remove your access or a shortcut, but not delete the original.
- A downloaded backup if you may need the workbook later. To keep a copy, open or download the file and save it somewhere separate before removing the online version.
Step-by-Step
- Identify where the workbook is stored. If you open it in Excel for the web, note the workbook name and look at the surrounding context: files opened from your personal OneDrive are stored there, while files from a work or school team may be in SharePoint. A file shown in a Teams channel is generally stored in the channel’s SharePoint document library. If you cannot tell, use the browser to open OneDrive or the relevant SharePoint site and search for the workbook name. Do not assume that closing the Excel browser tab deletes the file; it only closes the workbook view.
- Open the correct online file list. For a personal Microsoft account, go to OneDrive on the web and sign in. For a work or school account, open OneDrive from Microsoft 365 or go directly to the SharePoint site that contains the file, then open its document library. For a Teams channel file, open the channel’s Files tab and use the option to open the files in SharePoint if you need the full library controls. Menu labels can vary slightly by account or layout, but the goal is to reach the folder listing the actual workbook.
- Find and verify the workbook. Browse to its folder or use the search box. Check the full file name and, where available, its location, owner, and modified date. Excel files often end in .xlsx, .xls, or .xlsm, but extensions may be hidden in the list. If there are several similarly named copies, open the likely file or check its details before taking action. A workbook can be shared with other people, so check whether you are looking at the original file or a shortcut placed in your own OneDrive.
- Close the workbook if it is open. This is not always required, but closing the Excel for the web tab can help prevent confusion about which copy you are deleting. If other people have the workbook open, they may still see it temporarily or receive a message that it is unavailable after removal. Closing the tab does not save a separate copy or delete the workbook. If you made changes you want to keep, wait for Excel to finish saving before closing, or download a copy first.
- Select the file, not a folder or worksheet. In OneDrive or a SharePoint document library, select the checkbox or row beside the workbook. In some layouts, selecting the row reveals a command bar; in others, you may need to open the row’s More options menu. Confirm the selected item is the Excel workbook itself. Selecting a folder and deleting it can remove many files inside it, while deleting a worksheet requires opening Excel and editing the workbook instead.
- Choose Delete and confirm. Select Delete from the command bar or the file’s More options menu. Read the confirmation prompt, especially if it identifies a folder or warns that other people will lose access. Confirm only when the correct workbook is listed. The file should disappear from the current folder or search results. If the command is missing or disabled, you may lack permission, or the file may be controlled by an organization’s settings.
- Check the recycle bin if you need to undo the deletion. In OneDrive, open the Recycle bin from the navigation pane. In SharePoint, open the site’s Recycle bin; work and school accounts may have additional retention rules. Find the workbook, select it, and choose Restore to return it to its original location when that option is available. If you meant to delete it permanently, check the applicable retention policy before emptying the bin. Permanent deletion may not be reversible.
Using Excel for the web: Excel is where you view and edit the workbook, but the dependable way to delete the online file is through its OneDrive or SharePoint file list. If the workbook is open, use its location or the account’s file list to navigate to the stored item. In desktop Excel for Windows, deleting a local file through File Explorer is a different action and may not remove the cloud copy unless the file is in a synced folder. On a Mac, the same distinction applies: deleting from Finder affects a synced local location, while deleting through OneDrive or SharePoint in a browser acts on the online file.
Common Mistakes
- Deleting the wrong copy. A workbook may have duplicates with similar names, or a shortcut may point to a file stored elsewhere. Verify the folder and owner, not just the name. If you delete a shortcut, you may only remove it from your own view; that is not the same as deleting the shared original.
- Expecting to delete only part of a workbook. The Delete command in OneDrive or SharePoint removes the file as a whole. To remove a worksheet, open the workbook in Excel, right-click the worksheet tab, and choose Delete. To remove cell contents, select the cells and clear their contents instead.
- Assuming deletion affects only you. If you delete the original shared workbook from a location you control, other people who rely on that file may lose access too. Removing it from a shared folder or team library can affect everyone using that location. Check with collaborators before deleting a team or project file.
- Thinking closing a tab deletes the workbook. Closing the browser tab only closes the current view. The online file remains in storage until it is deleted from OneDrive or SharePoint.
- Emptying the recycle bin too quickly. The recycle bin is often the easiest recovery route. Emptying it, or permanently deleting the item, may prevent ordinary restoration. Organizational retention or backup policies can affect what happens afterward, so do not treat them as a guarantee.
Tips
- Sort by modified date or use search filters when several workbooks have similar names. Confirm the folder path before deleting a file from a project or team site.
- Download a copy before deletion if you might need the data, formulas, formatting, or macros later. A downloaded file is a separate copy; deleting the online original will not delete that separately saved copy.
- If you only want to tidy your own OneDrive, check whether the item is a shortcut to a shared folder or file. Use the option to remove the shortcut when available rather than deleting the original item for everyone.
- For workbooks stored in Teams, verify whether the file is in a channel’s shared files or in a personal chat. Channel files are normally backed by SharePoint, and deleting one can affect the team.
- After deletion, refresh the browser or clear the search query if the file still appears. A stale list or recent-files entry does not necessarily mean the workbook remains in its original folder.
Troubleshooting
- You cannot find the workbook: Check that you are signed in to the correct personal, work, or school Microsoft account. Search OneDrive and the relevant SharePoint site separately, and check Teams’ channel files if someone sent you a team link. The workbook may also have been moved or renamed.
- Delete is missing or unavailable: You may have view-only access, or the owner or administrator may restrict deletion. Ask the owner to remove the file or grant the appropriate access. If a retention label or policy is applied, contact your organization’s Microsoft 365 administrator rather than trying to bypass it.
- The file is still visible after deletion: Refresh the page and check the original folder, not just the Recent list. Recent items can remain as references for a while. If the file is still present in the folder, confirm that the deletion completed and that you selected the intended copy.
- You deleted the wrong workbook: Open the correct OneDrive or SharePoint recycle bin promptly, select the workbook, and choose Restore. Then verify its original location and access. If it is not there, check with your organization’s administrator or support team; retention periods and recovery options vary.
- Deleting a synced file causes unexpected changes: OneDrive sync can carry deletions between your computer and cloud storage. Check the OneDrive web recycle bin and sync status. If you only meant to remove the local download, use OneDrive’s storage or sync controls rather than deleting the cloud file from a synced folder.
Frequently Asked Questions
Can I delete an Excel file directly from Excel for the web?
Excel for the web is mainly for viewing and editing the workbook. To remove the stored file, use its OneDrive or SharePoint file list and delete it there.
Can I recover an Excel file after deleting it online?
Usually, you can try restoring it from the OneDrive or SharePoint recycle bin. Recovery depends on whether it is still retained there and on any organization policies; permanent deletion may not be recoverable.
Will deleting a shared Excel file remove it for everyone?
If you delete the original from its shared OneDrive or SharePoint location, other people may lose access. Removing a shortcut from your own OneDrive is different and generally only changes your view.
How do I delete one worksheet without deleting the Excel file?
Open the workbook in Excel, right-click the worksheet tab, and choose Delete. This changes the workbook itself, so save the change only if you intend to remove that sheet for people using the file.
Does deleting a workbook from OneDrive also delete it from my computer?
If the folder is synced, the deletion may sync to your computer and other connected devices. A separate downloaded copy stored outside the synced folder is not automatically removed.
Can I permanently delete a workbook online?
You can remove it from the recycle bin if you have the required access, but that may make recovery impossible. For work or school accounts, retention and backup rules may still apply, so check with the administrator before relying on permanent deletion.
Related
- How to Copy Only Selected Cells in Excel Without Extra Data
- Copy Link in Excel: Steps for Cells, Files, and Sheets
- How to Copy Multiple Rows in Excel
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Day Counter: Count Days Between DatesWith a start date in A2 and an end date in B2, enter =B2-A2 to count the days…
- Christmas Labels in Word: Create, Format, and PrintTo create Christmas labels in Microsoft Word, open Mailings > Start Mail Merge > Labels, choose the label…
- Google Sheets Dropdown Chips: How to Convert ThemTo convert an existing Google Sheets dropdown into a chip, select a cell in the dropdown, open Data…
- Goal Seek in Google Sheets: Find a Target Value FastGoogle Sheets does not offer a built-in Goal Seek command like Excel, but you can use a Goal…
- Excel Find and Replace Shortcut: Ctrl+H and Other TipsIn Excel for Microsoft 365 on Windows, press Ctrl+H to open Find and Replace, then enter the text…
- Edit a Data Validation List in Excel: Steps and FixesTo edit a data validation list in Microsoft Excel for Microsoft 365 on Windows, select a cell that…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.