If you need to delete an Outlook data file, the right steps depend on whether you are removing a local PST you created, an OST cached by an Exchange or Microsoft 365 account, or the server copy that lives in your mailbox. In Outlook, deleting the file from your computer is not the same as deleting mail from the server, so it helps to know which one you are removing before you click anything.
What an Outlook data file is
An Outlook data file stores your mail, calendar, contacts, and other items in a local file on your device. A PST file is a personal storage file you can add, remove, back up, or delete. An OST file is a cache that Outlook rebuilds from the server for Exchange, Microsoft 365, or IMAP accounts. If you remove the wrong file, Outlook can lose local data or create a fresh copy the next time it opens.
PST versus OST
A PST file is independent. If you no longer need it, you can remove it from Outlook and then delete the file from your computer. An OST file is tied to the account profile. You do not delete it the same way, because Outlook recreates it when the account is still active. For most users searching how to remove an Outlook data file, the file in question is a PST attached to an account or archive.
How to delete an Outlook data file in Outlook for Windows
If you want to remove a PST from Outlook desktop, detach it first. That removes it from the Outlook profile, which is the safe step before deleting the file from disk.
- Open Outlook.
- Go to File, then Account Settings, then Account Settings again.
- Open the Data Files tab.
- Select the PST you want to remove.
- Choose Remove.
- Close Outlook.
- Delete the actual PST file from File Explorer if you no longer need it.
If Outlook says the file is in use, close Outlook completely and try again. For a PST attached as an archive or secondary store, removing it from the Data Files list is the key step. That is the direct answer to how to delete an Outlook data file in Outlook.
How to delete the file from its location
To delete the data file on Windows, open File Explorer and go to the file path shown in Outlook. Common locations include Documents, OneDrive, or a custom folder under your user profile. Right-click the PST and choose Delete. If you need to find the Outlook data file location first, return to the Data Files tab, select the file, and look for the path displayed in the details area.
How to delete an Outlook data file on Mac
On Mac, Outlook stores account data differently, and you do not remove a Windows-style PST through the same menus. If you added an imported archive or local file, remove it from Outlook first, then delete the file from Finder. If your goal is to delete an Outlook data file Mac users created by import, close Outlook, locate the file in Finder, and move it to Trash.
For a synced Microsoft 365 or Exchange account, deleting the local cache file does not delete the mailbox on the server. Outlook for Mac recreates its local data after sign-in. If you need to remove server content, delete the messages from the mailbox itself, not the local cache.
How to delete Outlook server data
Deleting Outlook server data means deleting the messages, folders, contacts, or calendar items that are stored in your mailbox on Microsoft 365, Exchange, or Outlook.com. This is different from deleting the Outlook data file on your device. If you want to delete Outlook data from the server, remove the items inside the mailbox and then empty Deleted Items.
Steps to remove server data in Outlook
- Open Outlook and go to the mailbox that contains the data.
- Select the messages or folders you want to remove.
- Press Delete.
- Open Deleted Items.
- Empty that folder to remove the data from the mailbox.
If you are deleting a folder, move or delete the items inside it first. Some mailbox folders cannot be deleted until they are empty. This is the answer for searches like how to delete server data in Outlook and how to delete Outlook server data.
How to remove an Outlook data file without breaking your account
Only remove a data file after you know what it contains. If the file is a PST archive, removing it from Outlook does not affect your account sign-in. If the file is an OST cache, leave it alone unless you are resetting the profile or rebuilding the cache for troubleshooting. To remove Outlook data files safely, remove the file from the profile first, then delete the file from disk only when you are sure you do not need the contents.
If Outlook keeps reopening with the same file attached, the file is still listed in the profile. Remove it from Account Settings, then close Outlook before deleting the file. If a file is locked, another Outlook process is still running and must be closed before Windows will let you remove it.
Common problems when deleting Outlook data files
The Remove button is missing
The Remove button appears for detachable PST files in the Data Files tab. If you selected your primary account data file or an OST cache, Outlook will not offer the same option. In that case, you need to remove the account or rebuild the profile, not delete the file directly from Outlook.
The file will not delete from the computer
If Windows says the file is open, exit Outlook, check the system tray, and end any remaining Outlook process in Task Manager. Then delete the file from its folder. If the file is in OneDrive or another synced folder, pause sync before deleting it so the cloud copy does not return.
You want to remove only a folder, not everything
If your goal is to delete an Outlook data folder, delete the folder from inside Outlook or move its contents elsewhere first. Removing the file itself deletes every folder stored in that file. That is why file removal and folder deletion are not the same task.
Frequently Asked Questions
Can I delete an Outlook data file?
Yes, if it is a PST you no longer need. Remove it from Outlook first, then delete the file from your computer. Do not delete an OST file just to clear space, because Outlook can rebuild it from the server.
Can you delete Outlook data file in Outlook?
You can remove the file from the Outlook profile inside Account Settings. Outlook itself does not erase the file from your disk until you delete it in File Explorer or Finder.
How do I delete my Outlook data file if I do not know the location?
Open Outlook, go to Account Settings, and check the Data Files tab. Select the file and note its path. Then go to that folder in File Explorer or Finder and delete it after removing it from Outlook.
Does deleting Outlook data file delete email from the server?
No, not for PST files. Deleting the local file removes the local copy only. Server mail stays in Microsoft 365, Exchange, or Outlook.com until you delete it from the mailbox itself.
How do I delete Outlook data files one by one?
Open the Data Files tab and remove each PST separately. Then delete each file from its folder. If the file is an OST, do not delete it unless you are resetting the account cache or profile.
Related Posts:
Outlook
- How to Add the Teams Add-In Back to Classic Outlook
- How to Remove Your Profile Photo in Outlook
- How to Update Outlook on Windows
- How to Set Up Two-Factor Authentication for Outlook
- How to Add BCC in Outlook
- How to Uninstall Outlook From a PC
- How to Delay Sending Every Email in Outlook With a Rule
- Tips for Backing Up Your Outlook Data Files
- Best Practices for Using Outlook Contacts Effectively
- How to Block Someone in Outlook
- Best Ways to Backup Your Outlook Data Files
- How to Unblock a Sender in Outlook
- Using Outlook Add-Ins to Enhance Productivity
- How to Delete a Group in Outlook
- Step-by-Step Guide to Create Email Templates in Outlook
- How to Add or Change Your Profile Picture in Outlook
- How to Delete Categories in Outlook
- How to Change Your Outlook Email Password
- How to Export Outlook Emails to PDF Format
- How to Remove the New Outlook and Go Back to Classic
- How to Export Outlook Signatures to a New Computer
- How to Repair Outlook
- How to Export Your Outlook Calendar (Google, Excel, PDF)
- How to Change an Outlook Meeting Into a Teams Meeting
- How to Create a New Folder in Outlook
- How to Set a Reminder in Outlook
- How to Create a Group Calendar in Outlook
- How to Create a Contact Group in Outlook
- How to Add the Zoom Plugin to Outlook
- How to Turn Off Focused Inbox in Outlook