Skip to main content
Prism MigrationPrism Migration
PST Recovery

How to Recover Hard-Deleted Folders & Emails from Corrupted PST (2026 Guide)

S
Sarah Jenkins Author

Senior Forensic Recovery Specialist & Systems Architect

8 min read · Published August 16, 2026
Executive Summary & Key Takeaway

Accidentally Shift-Deleted critical Outlook folders or lost mailboxes after database corruption? Discover how to carve raw PST sectors and recover lost emails in 2026.

On This Page (8 sections) ▾
✦Tip

⚡ Quick Direct Answer: Recovering Shift-Deleted PST Folders

When you empty the "Deleted Items" folder or press Shift + Delete in Outlook, messages are not immediately erased from disk. Outlook simply marks their node IDs (NID) in the Node B-Tree (NBT) as unallocated free space.

  1. Close Microsoft Outlook immediately to prevent background compaction (Compact Now) from overwriting unallocated heap blocks.
  2. Avoid running scanpst.exe on the file prior to carving; ScanPST purges unallocated blocks during repair routines.
  3. Carve unallocated heap pages using Prism PST Recovery Tool to traverse unallocated database sectors and reconstruct email bodies, folder names, and attachments.
ℹNote

Trial Version Notice: The free evaluation version of Prism PST Recovery Tool scans and previews all recoverable deleted folders and message bodies, and exports up to 50 items per folder, allowing you to verify sector carving and attachment salvage before licensing.

Accidentally deleting a folder or emptying the Deleted Items folder in an offline Outlook .pst file can appear catastrophic. Because local data files do not connect to an Exchange Server dumpster ("Recover Deleted Items from Server"), standard client recovery options are unavailable.

Furthermore, file corruption can cause entire folder branches to vanish if the folder hierarchy table suffers a dirty shutdown.

However, under the MS-PST Open Specification, Microsoft Outlook does not zero out deleted records immediately. Unless the file has undergone automated compaction or sector overwrite, message bodies, headers, and attachments remain physically present in unallocated blocks.


The Internal Mechanics of Outlook Deletion

To recover hard-deleted folders, it is helpful to understand how Microsoft's Personal Storage Table architecture manages data structures:

CODE / SCRIPTCode / Script
┌────────────────────────────────────────────────────────┐
│  WHAT HAPPENS INTERNALLY WHEN YOU SHIFT-DELETE A FOLDER │
├────────────────────────────────────────────────────────┤
│  1. User executes Shift+Delete on a folder             │
│  2. Outlook updates Node B-Tree (NBT):                 │
│     * Marks Node Allocation status = 0x00 (Free)       │
│     * Detaches folder entry from Parent Hierarchy      │
│                                                        │
│  WHAT OUTLOOK DOES NOT DO:                             │
│     * Does NOT zero out physical 512-byte sectors      │
│     * Does NOT erase MAPI properties immediately       │
│     * Does NOT overwrite binary attachment streams     │
│                                                        │
│  Data remains in "Unallocated Space" until overwritten │
│  by incoming emails or file compaction routines!       │
└────────────────────────────────────────────────────────┘

The PST format operates as a structured database container:

  1. The Header Layer: Contains file metadata, encryption flags, and root B-Tree offsets.
  2. The Node Database (NDB) Layer: Contains the Node B-Tree (NBT), which tracks folder and message identifiers, and the Block B-Tree (BBT), which points to physical byte offsets.
  3. The Property Messaging (LTP) Layer: Contains message text, recipient tables, and MIME attachments.

When an email or folder is deleted:

  • Outlook updates the NBT descriptor, marking that specific NID as unallocated space (FREE_BLOCK).
  • The message bodies, headers, and attachments remain intact on disk pages until new emails overwrite those specific clusters or until Outlook runs an automatic background PST Compaction routine.

Critical Warning: The Compaction Threat

The primary risk to deleted email recovery is PST Compaction.

When Outlook runs with an open PST file and detects idle CPU cycles, or when white space in the PST exceeds 20% of total file size, Outlook may initiate background compaction.

During compaction, Outlook reads all active, allocated blocks, copies them to a continuous sector stream, and truncates the file, permanently discarding all unallocated blocks. Once compaction completes, Shift-Deleted emails cannot be recovered.

Immediate Preservation Rules:

  1. Shut Down Microsoft Outlook Immediately: Close Outlook or terminate outlook.exe via Task Manager to halt background compaction threads.
  2. Create a Working Copy: In Windows File Explorer, copy your .pst file to a separate location (e.g., D:\PST_Recovery_Copy\archive_copy.pst). Never perform recovery attempts directly on your primary data file.
  3. Do Not Run ScanPST: Microsoft's scanpst.exe treats unallocated blocks as database discrepancies. During Phase 8 ("Repairing file"), ScanPST purges unallocated and orphaned nodes, destroying recoverable Shift-Deleted items.

Step 1: Identifying Hidden Folders Lost to Hierarchy Corruption

Sometimes a folder was not deleted; its parent folder pointer was corrupted during an unexpected system crash or power interruption.

When a folder node's ParentFolderNID becomes invalid, Outlook cannot determine where to position the folder in the navigation tree. Outlook may omit the entire branch from the user interface while the message data still consumes disk space.

Diagnostic Check:

  1. Right-click your PST root folder in Outlook and select Data File Properties.
  2. Click Folder Size.
  3. If the total file size on disk is 35 GB, but the sum of visible folders in the list accounts for only 10 GB, data remains trapped in hidden or orphaned nodes.

Step 2: Forensic Block Carving via Prism Recovery Engine

Because Microsoft Outlook lacks built-in tools to inspect unallocated database sectors, retrieving permanently deleted items requires a specialized parser: Prism PST Recovery Tool.

CODE / SCRIPTCode / Script
┌────────────────────────────────────────────────────────┐
│  PRISM FORENSIC UNALLOCATED BLOCK CARVING PROCESS      │
├────────────────────────────────────────────────────────┤
│  [Corrupted or Shift-Deleted PST File]                 │
│             │                                          │
│             ▼ Direct 64-Bit Physical Sector Parsing    │
│  [Prism PST Recovery Engine]                           │
│             │                                          │
│             ├─► Active Allocated Nodes (Standard Mail) │
│             │                                          │
│             └─► Unallocated Sector Scanner:            │
│                 * Scans for MAPI Signature (0x0002)    │
│                 * Detects PR_SUBJECT & PR_CLIENT_SUBMIT│
│                 * Carves Sub-Node Attachments (SLBLOCK)│
│                 * Reconstructs Severed Folder Trees    │
│             │                                          │
│             ▼ Presentation in UI Preview               │
│  [Interactive Preview Pane: Recovered Items]           │
└────────────────────────────────────────────────────────┘

The recovery engine implements signature-based block carving:

  • It scans physical pages in the archive, reading past corrupted NBT index headers.
  • It identifies fragmented email structures by scanning for known MAPI property tags: PR_SUBJECT_W (0x0037001F), PR_SENDER_NAME_W (0x0C1A001F), and PR_BODY_W (0x1000001F).
  • It extracts and associates orphan sub-nodes containing binary attachments and embedded images (PR_ATTACH_DATA_BIN).
  • It flags recovered deleted items with a distinct badge in the interface, allowing you to selectively restore desired records.

Step-by-Step Restoration Procedure

  1. Launch the Utility: Open Prism PST Recovery Tool on your workstation.
  2. Load the Working Copy: Click Add File and select your duplicated .pst or .ost file.
  3. Select Deep Scan Mode: Choose Deep Forensic Carving to scan the entire binary surface of the file, including all unallocated space and severed folder records.
  4. Preview Recovered Items: Once scanning completes, review the folder tree in the left pane:
  • Standard folders appear with their original names (Inbox, Sent Items, Archive).
  • Recovered deleted folders appear with dedicated indicator icons.
  • Click any folder to inspect email bodies, sender metadata, timestamps, and attachments in the preview pane.
  1. Apply Date or Keyword Filters: Filter by date range or search by sender or subject keywords to isolate specific correspondence.
  2. Export to New Unicode PST: Click Export and select PST (Unicode Format). You can optionally enable auto-split thresholds (e.g., 10 GB chunks) for large archives.
  3. Mount in Outlook: In Microsoft Outlook, go to File > Open & Export > Open Outlook Data File and select your newly exported PST file.

Technical Comparison: Deletion Recovery Capabilities

Recovery DimensionOutlook "Deleted Items"ScanPST.exeHex Editor ModificationPrism PST Recovery Tool
Shift+Delete RecoveryNot possiblePurges unallocated blocksHigh risk of file corruptionDeep unallocated sector carving
Emptied Trash RecoveryNot possible (PST)Discards orphaned nodesCorrupts internal indicesFull sector re-indexing
Recovers Subfolder TreesNoGenerates Lost and Found filesNoReconstructs folder names & trees
Preserves AttachmentsN/AAttachments frequently omittedFile corruption likelyPreserves binary attachment blocks
Compaction SafetyCompaction runs in backgroundCan trigger file truncationN/ANon-destructive read-only analysis

Frequently Asked Questions (FAQs)

Can I recover emails if they were deleted several months ago?

It depends on whether your PST file has been compacted or overwritten. If the PST file is an archive that has not received new incoming mail or undergone compaction, messages deleted months prior can often be carved successfully. If the file has undergone compaction, unallocated blocks will have been discarded.

Why did an entire folder disappear without anyone deleting it?

This typically occurs when the Node B-Tree (NBT) descriptor for that folder is corrupted during an abnormal shutdown, power failure, or application crash. The emails remain physically present in the PST file, but Outlook cannot map them to the root tree. Forensic carving locates these orphaned nodes and rebuilds access.

Can ScanPST recover Shift-Deleted items?

No. ScanPST's primary objective is to make damaged files mountable by Outlook. It treats unallocated blocks and detached nodes as invalid entries and purges them during repair.

What happens to email attachments during deletion recovery?

In the PST structure, attachments reside in dependent sub-nodes (SLBLOCK). The recovery engine traces the node relationship from the message header to its associated sub-node blocks, extracting binary attachments (PDFs, spreadsheets, images) alongside the message body.


Summary

Accidentally Shift-Deleting a folder or experiencing hierarchy corruption in an Outlook PST file does not mean data is permanently lost. By immediately halting Outlook to prevent background compaction, creating an isolated working copy, and scanning unallocated sectors with Prism PST Recovery Tool, administrators can recover deleted correspondence, folder trees, and attachments safely.

Related Guides:

Recommended Automated Utility Windows 11 & 10 (64-bit)

PST Recovery Tool

Repair severely corrupted Outlook PST/OST files, fix 512-byte header damage, resurrect permanently deleted emails from unallocated blocks, and export to healthy PST, EML, MSG, HTML & MBOX.

Windows 11 & 10 (64-bit) 1, 2 & 3-Year License Options Free Trial (50 items/folder)