To fix an "Outlook data file full" error, you must either delete unnecessary items to free up space, use the built-in Mailbox Cleanup tools, or increase the registry limit for the maximum data file size. This error occurs when your .pst or .ost file reaches its predefined storage capacity, preventing you from sending or receiving new emails. Depending on your version of Outlook, the default limit is typically 50GB, though older versions may be limited to 20GB.
What You'll Need
- A computer running Microsoft Outlook (Desktop version).
- Administrative privileges on the PC (required if you intend to edit the Windows Registry).
- An external hard drive or cloud storage if you plan to archive large amounts of data.
- A backup of your current data file before performing advanced modifications.
Step-by-Step
Depending on your technical comfort level and the urgency of the situation, choose one of the following three methods. Note that menu labels may differ slightly based on your version of Outlook, device, or region.
Method 1: Using Built-in Cleanup Tools
- Open Outlook and navigate to the File menu in the top-left corner.
- Select Info from the left-hand sidebar.
- Click on the Tools button (sometimes labeled as Mailbox Cleanup or Cleanup Tools) and select Mailbox Cleanup... from the dropdown menu.
- In the window that appears, use the Find items larger than field to identify emails with massive attachments. Enter a size (e.g., 5000 KB) and click Find.
- Review the list of large emails. Select those that are no longer needed and press the Delete key.
- Go to your Deleted Items folder. Right-click the folder and select Empty Folder. Outlook does not reclaim space from the data file until the Deleted Items folder is completely cleared.
- If you have a large amount of old mail, select Archive from the Tools menu to move older items into a separate archive .pst file, which removes them from the primary active data file.
Method 2: Compacting the Data File
Deleting emails removes the data, but Outlook does not automatically shrink the physical size of the .pst or .ost file on your hard drive. You must manually compact the file to reclaim that white space.
- Click the File tab and select Account Settings, then click Account Settings again from the dropdown.
- In the Account Settings window, click on the Data Files tab.
- Select the data file that is full from the list and click the Settings... button.
- In the Outlook Data File Settings window, click the Advanced tab.
- Click the Outlook Data File Settings button.
- Click Compact Now. This process may take several minutes or even hours depending on the size of the file and your hardware speed. Do not close Outlook until the process is complete.
Method 3: Increasing the File Size Limit via Registry (Advanced)
If you cannot delete any data and have sufficient hard drive space, you can tell Windows to allow Outlook to use a larger file size. Warning: Incorrectly editing the registry can cause system instability. Back up your registry before proceeding.
- Close Outlook completely.
- Press Windows Key + R, type
regedit, and press Enter. - Navigate to the following path based on your version (the version number may vary, e.g., 16.0 for Outlook 2016/2019/365):
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST. - If the PST key does not exist, right-click the Outlook folder, select New > Key, and name it
PST. - Right-click in the right pane and select New > DWORD (32-bit) Value. Name it
MaxLargeFileSize. - Double-click
MaxLargeFileSize, set the Base to Decimal, and enter the desired maximum size in megabytes (e.g., 102400 for 100GB). - Right-click again and create another DWORD (32-bit) Value named
WarnLargeFileSize. - Double-click
WarnLargeFileSize, set the Base to Decimal, and enter a value slightly lower than the maximum (e.g., 95360 for 95GB). This ensures you get a warning before the file hits the hard limit. - Close the Registry Editor and restart Outlook.
Common Mistakes
- Forgetting to Empty the Trash: Many users delete thousands of emails but leave them in the Deleted Items folder. The data file size will not decrease until these items are permanently purged.
- Overloading the Registry: Setting the
MaxLargeFileSizeto an astronomically high number (like 1TB) can lead to severe performance degradation. As the file grows, Outlook takes longer to index and search, and the risk of file corruption increases. - Ignoring the OST vs PST Difference: Attempting to manually move an .ost file (offline cache) like a .pst file. .ost files are synchronized with the server; if you delete the .ost file, Outlook will simply recreate it from the server, which won't solve a server-side quota issue.
- Skipping the Compact Step: Assuming that deleting emails immediately shrinks the file on the disk. Without the "Compact Now" command, the file remains the same size on your hard drive even if it is empty inside.
Tips
- Use AutoArchive: Set up AutoArchive (File > Options > Advanced > AutoArchive Settings) to automatically move emails older than six months to a separate archive file on a different drive.
- Avoid Large Attachments: Instead of attaching large files to emails, upload them to OneDrive or SharePoint and send a link. This keeps your data file lean.
- Regular Backups: Large data files are more prone to corruption. Always keep a backup of your .pst files on an external drive.
- Monitor Disk Space: Ensure the hard drive where the data file is stored has at least 10-20% free space. If the physical disk is full, Outlook will report a data file error even if the internal limit hasn't been reached.
Troubleshooting
If you have followed the steps above and Outlook still reports that the data file is full, try these checks in order:
- Check Server Quota: If you are using an Exchange or Microsoft 365 account, the limit might be on the server side, not the local file. Log into Outlook Web App (OWA). If you see a "Mailbox Full" warning there, you must delete emails from the server or request a quota increase from your IT administrator.
- Run ScanPST.exe: A corrupted data file can sometimes report incorrect size information. Locate the
scanpst.exetool in your Office installation folder and run it to repair the .pst file. - Check for Hidden Folders: Some synchronization folders or "Sync Issues" folders can grow unexpectedly large. Check the folder list in the bottom-left corner (switch to Folder View via the bottom navigation bar) to find hidden bloat.
- Restart the PC: If you edited the registry, a full system restart ensures all services recognize the new limits.
Frequently Asked Questions
What is the difference between a PST and an OST file?
A .pst (Personal Storage Table) file is used for POP3 accounts or local archives and stores data on your computer. An .ost (Offline Storage Table) is a synchronized copy of your mailbox from an Exchange, IMAP, or Outlook.com server.
Will increasing the registry limit slow down my computer?
Increasing the limit itself doesn't slow the PC, but as the file grows larger (e.g., over 50GB), Outlook may become sluggish when searching, opening, or indexing the mailbox.
Can I move my data file to another drive?
Yes, you can move a .pst file to another drive and then point Outlook to the new location via Account Settings > Data Files. However, .ost files are more difficult to move and usually require creating a new Outlook profile.
Does deleting emails immediately free up hard drive space?
No. Deleting emails removes them from the database, but the file size on the disk remains the same until you use the "Compact Now" feature in the Data File Settings.
Is it safe to delete the .ost file?
Generally, yes. Since an .ost file is a mirror of the server, deleting it will force Outlook to download a fresh copy from the server the next time you open the app. However, any items stored only "On this computer" will be lost.