October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk4 min

How to Permanently Delete All User Mailboxes in Microsoft Exchange Server 2016

Exchange 2016 can disconnect mailboxes for recovery or purge them immediately. Learn how to scope targets, check retention and holds, and avoid an unsafe bulk deletion.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In Exchange Server 2016, ordinary mailbox deletion does not immediately erase mailbox data: it disconnects the mailbox, which is normally recoverable during the database’s configured retention period. For an immediate, unrecoverable purge, Microsoft documents Remove-Mailbox -Permanent. Before using it in bulk, define exactly which mailboxes “all” includes, check holds and retention obligations, and review the target list. There is no safe, scope-free command that can infer those choices for your organization.

Decide what “all user mailboxes” means

Do not begin with a broad removal command. Exchange organizations can contain mailbox classes and data that should not be treated alike. Build and review an explicit target set before making changes.

As an Amazon Associate I earn from qualifying purchases.

  • Decide whether the scope includes primary mailboxes, archive mailboxes, or both.
  • Decide whether shared and resource mailboxes are included, rather than assuming “user” covers them.
  • Identify any special or system recipient classes that must be excluded.
  • Record each target’s mailbox identity, recipient type, and database so the intended scope can be checked against the actual environment.

Also confirm that you have authority to remove the data and that no legal, discovery, or organizational preservation requirement applies. Microsoft warns that deleting the associated Active Directory (AD) user can mark a mailbox for removal even when Litigation Hold or In-Place Hold was applied. If preservation is required, Microsoft advises disabling the account and retaining the mailbox until the data has been expunged or preservation is no longer required. See Microsoft’s guidance on disabling or deleting mailboxes and the Disable-Mailbox reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the correct removal method

The right operation depends on whether the mailbox is active or already disconnected, and whether recovery should remain possible.

Operation Starting state and scope What happens Recovery and retention
Disable a mailbox An active mailbox associated with an AD user Removes Exchange attributes from the AD user and disconnects the mailbox. If the mailbox has an archive, disabling it also marks the archive for removal unless the archive-specific procedure is used. The disconnected mailbox remains in its database according to the configured MailboxRetention period and can be reconnected before it is purged.
Delete a mailbox An active mailbox The standard mailbox delete procedure disconnects the mailbox and deletes the associated AD account. The mailbox remains recoverable according to the database retention setting; Microsoft documents 30 days as the default, but the live configuration may differ.
Remove-Mailbox -Permanent An active mailbox identified for removal Immediately purges the mailbox. Not recoverable. Microsoft identifies -Permanent as applicable to Exchange Server 2016; it is distinct from the Exchange Online-only -PermanentlyDelete parameter.
Remove-StoreMailbox A disconnected or soft-deleted mailbox, scoped to a database Purges a mailbox already in a disconnected state. Microsoft’s documented example is database-scoped; this does not select every active user mailbox across an organization. Purged data cannot be reconnected or restored. Verify mailbox state, identity, and database before removal.

Microsoft’s disable-or-delete guidance explains the ordinary disconnect behavior and states: “If you use the Remove-Mailbox cmdlet with the Permanent switch, the mailbox is immediately purged and isn’t recoverable.” Consult the Remove-Mailbox reference and Remove-StoreMailbox reference for their documented parameters and scope.

Understand retention before choosing ordinary deletion

For a disconnected mailbox, the database’s MailboxRetention setting determines how long Exchange retains it. Microsoft documents a default of 30 days; that is a default, not a guarantee about your server. Check the setting on the relevant database and use the actual configured value when deciding whether a disconnected mailbox is still recoverable.

Before that retention period expires, a disabled mailbox can be reconnected, and Microsoft documents restoring the contents of a deleted mailbox. See Connect disabled mailboxes and Restore a deleted mailbox. Once the mailbox has been permanently purged, those recovery paths do not apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prepare and validate the bulk operation

  1. Inventory recipients and databases. Compile the proposed targets, noting mailbox class, archive status, AD account, and database. Separate active mailboxes from disconnected or soft-deleted ones.
  2. Review preservation requirements. Resolve applicable holds, discovery needs, retention policies, and organizational or legal obligations before choosing any destructive action. Do not use a purge command to bypass preservation.
  3. Confirm permissions. Microsoft’s documented procedures require appropriate assigned permissions, including Recipient Provisioning Permissions for the described tasks. Verify the operator’s role in the organization before proceeding.
  4. Validate selection logic without deleting data. Have another administrator or an authorized reviewer check the exact target list and exclusions. Test how your selection behaves in your actual environment; do not substitute an unreviewed organization-wide pipeline.
  5. Choose the operation for each approved target. Use the standard disable or delete procedure when a recoverable disconnected mailbox is intended. Use Remove-Mailbox -Permanent only for an approved active-mailbox purge, or Remove-StoreMailbox only for a verified disconnected mailbox in the intended database.
  6. Verify the result. Check the relevant Exchange Admin Center recipient list and confirm that the resulting directory and mailbox state matches the approved plan. Microsoft documents EAC and Exchange Management Shell procedures; the exact verification view depends on the action performed.

What to do with disconnected mailboxes

Do not confuse purging disconnected mailboxes with deleting all active user mailboxes. Remove-StoreMailbox operates on disconnected or soft-deleted mailbox data, and its scope is tied to a database and mailbox state. First verify that the mailbox is disconnected, then confirm its identity and database. A database-wide purge of soft-deleted mailboxes can include more than the active user accounts in your intended target set.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Bottom line for an Exchange 2016 administrator

If your goal is permanent erasure, Remove-Mailbox -Permanent is Microsoft’s documented immediate-purge option for Exchange Server 2016, but it is irreversible. If you need a recovery window, use the ordinary disable or delete process and account for the database’s actual MailboxRetention setting. In either case, scope the targets explicitly and resolve archive, directory, and preservation implications before executing a bulk change.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.