• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Recover messages deleted from .pst files

Slipstick Systems

› Outlook › Configure and Maintain › Recover messages deleted from .pst files

Last reviewed on July 29, 2020     38 Comments

Exchange server users may be able to recover deleted items using Deleted Items recovery, if the administrator has it enabled. If it's not enabled, they cannot recover items deleted from Exchange mailboxes. See Recovering Deleted Items in Outlook for details.

The following method is a last ditch effort to recover Outlook items permanently deleted from a pst file. It works only on PSTs but there is no guarantee it will work.

The best way to avoid accidentally deleting items is to turn off the option to empty the deleted items folder on exit and set up AutoArchive to delete older items from the deleted folder every few days.

Things to remember:

  1. This works under very limited circumstances
  2. If the PST has begun compacting, it will likely fail
  3. You're better off NOT emptying the deleted folder until you are sure you won't need the messages
  4. Don't store messages in the folder unless you are sure the messages are trash

If, for some reason, you move items to the deleted folder and change your mind after emptying the Deleted Items folder, you may be able to recover the messages under very specific conditions.

When the method below fails, you may be able to recover the deleted message using a commercial product, such as Stellar Phoenix Deleted Email Recovery, Advanced Outlook Repair or Kernel Outlook PST

How Outlook's Deleted Items folder works

A PST is a database. Items are records within the database and there is an index that points to each item. When you empty the Deleted Items folder, Outlook doesn't actually delete the items, it just deletes the items' listings from the index. The item is still in the PST, but unrecoverable because Outlook has no idea where it is without the pointer in the index. The space the item takes up is called "whitespace".

When you Compact a PST, the item is finally removed permanently and the whitespace is recovered, often shrinking the PST by many megabytes. Once the PST has 20% "whitespace", Outlook begins compacting the PST. If the Deleted Items folder contained a lot of messages, Outlook may begin compacting the PST immediately and the items will be deleted forever within a few minutes.

To recover the items which are no longer in the index you need to force Outlook to rebuild the index by causing corruption. You can cause corruption by using a Hex editor to delete some characters from the beginning of the PST file. If you delete the wrong ones you'll cause corruption but not in the index and Outlook won't rebuild the index.

Recover the Deleted Items

If you don't know what a Hex editor is, you probably shouldn't be hex editing anything, but if you want to try, Google for "hex editor" - UltraEdit is probably the best and easiest one to use. Before doing anything to the PST with a Hex Editor, make a copy of the PST, or you may end up losing all of your e-mail.

  1. Open the PST in the Hex editor.
  2. Delete positions 7 through 13 with the spacebar. Since you're using hexadecimal numbering, this actually clears 13 characters in the following positions:
    00007, 00008, 00009, 0000a, 0000b, 0000c, 0000d
    0000e, 0000f, 00010, 00011, 00012, 00013
    As you clear the characters, the editor displays the code “20” in their position.
  3. hex edit the pst file

  4. Save the PST, it is now corrupted.
  5. Run the Inbox Repair Tool, SCANPST.exe, to recover the file. Use Windows Search utility to find it. For additional information on the Inbox Repair Tool, see How to use Scanpst.exe to repair Outlook data files or KB 287497
  6. The Inbox Repair Tool creates a backup and repairs the damage and recreates the PST.

Open the new PST in Outlook. The Deleted Items folder should now contain the deleted messages, unless Outlook has already deleted them for good by compacting the PST.

Recover messages deleted from .pst files was last modified: July 29th, 2020 by Diane Poremsky
Post Views: 125

Related Posts:

  • Recover Deleted Items in OWA
  • Are Deleted Items gone forever in Outlook?
  • How to Compact the Data File When you Close Outlook
  • How to compact an Outlook data file (*.pst)

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. Lakiya says

    June 20, 2024 at 5:42 am

    Hi Dianne,

    Thanks for this guide. One of our employees was somehow managed to delete some of the folders from his inbox and then also from the Deleted Items.

    I tried your method and after having the pst file repaired, I can see the deleted folders but I don't see any emails under those folders.

    What could be the problem?

    Reply
    • Diane Poremsky says

      June 20, 2024 at 7:07 am

      Are the messages in the deleted items folder? If they are not in either Deleted items or the found folder, the pst started to compact and the messages were permemtely deleted.

      Reply
      • Lakiya says

        June 20, 2024 at 7:34 am

        Unfortunately, I can't find them in both folders. The pst file size is only about 1.3gb - can it be compacted?

      • Diane Poremsky says

        June 23, 2024 at 12:59 am

        Compacting will make the file size smaller - and finalixe the deletions. if you tried a recovery app and the messages are gone, yesm, you can compavt it.

  2. Annie says

    August 15, 2021 at 12:50 pm

    Hey Dianne

    I had a somewhat specific question regarding Outlook I was wondering you could help me with?

    I have an old Hdd that ran Xp that doesn’t boot anymore. I’m trying to determine if a specific email had used Outlook between a certain time frame. The email isn’t accessible anymore either. The free pst viewer software that I find online doesn’t show back as far as I need it, I suppose it may have been compacted and all those old emails deleted.

    Is there anything else in the PST file or some other file that I could use to determine every time outlook was used or at least an email was sent? A permanent record that wouldn’t get compacted in the PST maybe? Any suggestions would be greatly appreciated!

    Reply
    • Diane Poremsky says

      August 16, 2021 at 12:38 am

      If the free pst viewer doesn't show it, it doesn't exit. If you think it was deleted but the pst not compacted, a pst repair or deleted email recovery utility might find it. They all have trials - if its not visible in the trial, it no longer exists.

      Reply
      • Annie says

        August 17, 2021 at 1:54 am

        Is there any file that may track when the Outlook application was opened/used or anything like that?

  3. Annie says

    August 5, 2021 at 4:22 am

    Hi Dianne ,

    I found it interesting that the PST files compacted automatically when reaching 20% white space.

    Was this the case with all versions of Outlook ? I’m curious if Outlook 2010 and prior did this. Any idea?

    Reply
    • Diane Poremsky says

      August 5, 2021 at 5:47 pm

      Yes, all versions of Outlook did it once there was more than 20% white space - and the computer was idle. It wasn't an automatic "it's 20%... time to compact" - it waited for idle time and compacted as much as it could - which might only be a few messages at a time, so not a noticeable drop in file size.

      On large Unicode data files, 20% can be mega white space... recovering it all needs a manual compact.

      Reply
  4. Pierre-Yves ANDRI says

    July 22, 2019 at 7:53 pm

    I would like to thank the author of this article very much. This method works perfectly, and allowed me to recover an inbox that was completely deleted on the server (thousands of emails since 1998). This worked even after there was a synchronization of imap folders with outlook 2010. In reality, messages deleted on the server are still present (but inaccessible) in the IMAP PST.

    Reply
    • Pierre-Yves ANDRI says

      July 22, 2019 at 8:15 pm

      I would just like to precise that the edit process (2) is a little faulty. There are only 7 characters to edit, not 13 (position 7 to 13, = address 0006 to 000c). During the repair process with scanpst.exe, I got many errors in the .log file, but anyway all worked nicely.

      Reply
  5. Joe Smith says

    June 21, 2019 at 5:33 pm

    I cannot get my old email system or my old emails or my address book
    since you did some kind of update about a week ago. came back from a week vacation and cannot send emails

    Reply
    • Diane Poremsky says

      June 21, 2019 at 9:38 pm

      Don't blame me. I didn't do it. :)

      Does this fit your description?
      >>
      Outlook may hang at loading profile or won't start. You may notice that if you open Task Manager that other Office processes are unexpectedly listed even though you did not open the application. If you end those processes it may enable Outlook to then open normally.
      >>
      If so, see https://support.office.com/article/outlook-won-t-open-or-is-stuck-at-loading-profile-6d9590bb-3c0f-4caf-9599-d5cf6b5d3bd0

      Reply
  6. paulo orejudos says

    April 11, 2019 at 8:12 am

    Hi. Can you please help me disable or prevent the user to delete mails from the inbox? Im using outlook 2016.

    Reply
    • Diane Poremsky says

      May 23, 2019 at 10:49 am

      You can't prevent it if they are the mailbox owner. If its a shared mailbox, remove Deleted permissions. If you use Exchange server, you can set the mailbox on legal hold - they can delete but they aren't permanently deleted.

      Reply
  7. Michael says

    March 11, 2019 at 6:33 pm

    Thanks a lot, helped me out.

    Reply
  8. Jesse says

    July 18, 2018 at 3:33 pm

    Hi Diane,
    Is there a way to recover Office 2007 Outlook templates that are no longer showing up after installing Office365 with Outlook 2016?

    Reply
  9. Chan Pat says

    February 15, 2017 at 3:37 am

    Good afternoon. MS Outlook 2010
    User create archive mail replace same old folder & old location.
    Can you have trip for recover it, please?

    Reply
    • Diane Poremsky says

      February 16, 2017 at 12:37 am

      They deleted then recreated the folder they used for the Archive button? Do they empty the Deleted items folder? If you use Exchange server and it's gone from Deleted items, you might be able ot get the mail back from Recover Deleted. It won't list the folder there tho.

      Reply
  10. Tomasz Stradomski says

    December 6, 2016 at 8:00 am

    Thank you very much, it works! :-)

    Reply
  11. CharlieK says

    October 15, 2016 at 5:19 am

    This method works also with Outlook 2016 .pst file.

    Reply
  12. Mark says

    January 11, 2016 at 11:05 am

    Thanks for that tip Diane, saved my bacon today.

    Reply
  13. JBParkland says

    September 1, 2015 at 2:57 pm

    Hi Diane, thank you very much for this great fix. All my partner's POP3 sent email disappeared from her sent items folder in Outlook 2010 for no obvious reason, but running the hex editor/scanpst fix on the pst file recovered them all. So many many thanks.

    Reply
  14. Amod Kunte says

    July 23, 2015 at 3:37 am

    I have configured my gmail account in outlook 2007 (IMAP). accidently i have deleted some mails from gmail account. now they are gone from my outlook as well. is there any option i can get all the mails back?????

    Reply
    • Diane Poremsky says

      July 23, 2015 at 8:26 am

      If they are not in gmail.com, then they are gone forever. The changes would have synced to Outlook on the next sync, removing them from Outlook too.

      Reply
  15. Nelson says

    April 29, 2015 at 4:28 am

    I've managed to recover the emails.
    I was trying to copy/move the emails of the "damaged" OST to a PST and the result was error. Later i was already giving up and created a new imap account on outlook and tried once more move the emails and succeeded, i'd to copy the emails one by one, and every time it gave me an error, but the email copied successfully. Move the emails from ost to pst resulted in error and no email copied, from ost to ost resulted in error but email copied correctly.

    Thank you very much for your help!!!

    Reply
  16. Nelson says

    April 28, 2015 at 9:57 am

    I Diane

    Your solution of using Hex Editor worked on my ost from my IMAP account on outlook 2013.
    My problem was the web page guy screwing around with ftp folders on the hosting server, and suddenly i was looking at my outlook inbox with about 500 emails on it and they started to dissapear, vanishing right in front of my eyes. i closed outlook immediately and googled for a solution, and found it here. Thanks for that.

    Now i'm able to view the emails but can't move/copy them to another place, i've also tried to export the ost to a pst but nothing... the error is something like "the item was moved or deleted..."

    Do you have any suggestion?

    Reply
    • Diane Poremsky says

      April 28, 2015 at 10:01 am

      Did you try making a copy of the pst file and running scanpst on it 3 times?

      Reply
    • Nelson says

      April 28, 2015 at 11:15 am

      Yes, i scanned the ost several times.

      Reply
      • Diane Poremsky says

        April 28, 2015 at 8:58 pm

        You'll probably need a commercial pst recovery utility then. sorry. You might want to make a copy then try the hex edit trick again and repair.

  17. Debora says

    March 3, 2015 at 12:55 am

    Hi diane, i fouund it.... thank you so muccchhhhhh........

    Reply
  18. Debora says

    March 2, 2015 at 10:38 pm

    hi diane thank you for your reply, unfortunately my boss use outlook 2010,

    Reply
    • Diane Poremsky says

      March 2, 2015 at 11:17 pm

      IMAP data files in Outlook 2010 and older default to %localappdata%\microsoft\outlook. Calendar and contacts are in a pst file, either in the localappdata location or in My Documents\Outlook Files.

      Reply
  19. Debora says

    March 2, 2015 at 9:28 pm

    Hi Diane, i think i have a same problem with roy, my boss set his account in IMAP, and i delete the account on outlook, and all the file was gone, i cannot find the all the file on Outlook. could i found it in C: drive?

    Reply
    • Diane Poremsky says

      March 2, 2015 at 10:35 pm

      Are you using Outlook 2013? When you delete an IMAP, Exchange, or Outlook.com account, Outlook oh so helpfully deletes the ost file for you since it can only be used by the account that created it. Generally its not a problem but it is if you use an IMAP account and the 'this computer only' folders and didn't export the contents of those folders.

      Reply
  20. Roy says

    February 8, 2015 at 1:44 am

    hello Diane, i don't know if am posting in the right place. I have hit a snag, my bosses' outlook is setup to use IMAP. The issue is Sent Items on the laptop where not synchronizing (Outlook 2013) with the Sent on the server, so i went to the 'root path' under account advane setting to try to activate the connection to the server. I typed Inbox, there after the server Sent items started syncing but i couldn't see my previous sent items. It simply has disappeared. I only see sync issues that indicate that the emails where being stored on an offline folder. I am stuck and my boss is already threatening me. I would kindly request your assistance on how to access these sent items. Hope to hear from you soon.

    Reply
    • Diane Poremsky says

      February 8, 2015 at 9:08 am

      What folder were the Sent items that didn't sync in? Did they sync up to a different folder? If you remove Inbox as the root path, do they come back? (I don't think they will, sorry, but it's worth a shot.)

      Reply
  21. Mareeba Property Management says

    February 5, 2015 at 3:30 pm

    I'll give it a go and let you know!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 7

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • This operation has been cancelled due to restrictions
  • Change Outlook's Programmatic Access Options
  • How to Hide or Delete Outlook's Default Folders
  • Use Public Folders In new Outlook
  • Removing Suggested Accounts in New Outlook
  • How to Delete Stuck Read Receipts
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.