How to Restore Deleted Mailbox in Microsoft 365?

Restore a deleted user and mailbox, with facts from Microsoft Learn.

Fact-checked Reviewed by Aswin Vijayan Updated November 17, 2026 Based on 2 sources
Summary

A deleted Microsoft 365 mailbox can be restored for 30 days. If an admin deleted the user account, open the Microsoft 365 admin center, go to Users > Deleted users, select the user and choose Restore user. If the account is already gone from that page, or the 30 days have passed, Microsoft says the mailbox cannot be recovered.

What Is a Soft Deleted Mailbox?

Microsoft describes two states. A soft deleted mailbox is recoverable. It exists when the Microsoft Entra user sits in the recycle bin, or when the user was purged within the last 30 days. A hard-deleted mailbox cannot be recovered. This happens when the mailbox was soft deleted for more than 30 days and the user was then hard-deleted, or when an admin ran Remove-Mailbox with the -PermanentlyDelete parameter.

How to Restore Deleted Mailbox in Microsoft 365: Step by Step

Restore from the same place where the deletion happened. Microsoft warns that restoring from the wrong source makes the restore fail.

Step 1: Check the Status First

An admin can run the automated diagnostics for recently deleted mailboxes through the "Run Tests: Deleted Mailbox" link in the Microsoft 365 admin center. It needs an administrator account.

Step 2: Restore the User in the Admin Center

If the user account was deleted, restoring the account restores the mailbox too. You must be a User Administrator, as Microsoft's restore user steps explain.

  1. Open the Microsoft 365 admin center and go to Users > Deleted users.
  2. Select the user's name, then select Restore user. To restore several accounts, select them all first.
  3. Follow the prompts to set a new password, then select Restore.
  4. If the restore succeeds, select Print to get the username and password, and send them to the user securely.
  5. Assign a license if the user needs Microsoft 365. Restoring does not assign one automatically.

If a new account uses the same user name, rename it and retry, or enter a new primary email address during the restore.

Step 3: Use PowerShell for a Soft Deleted Mailbox

To restore mailbox Exchange Online data with PowerShell, connect to Exchange Online PowerShell and run Undo-SoftDeletedMailbox. You are prompted for a password.

Step 4: Check a License Removal

If the mailbox went missing because an Exchange Online license was removed, the data is held for 30 days. Adding the license back in that period restores access and makes the mailbox fully active. After 30 days the data is deleted and cannot be recovered.

What Can Block a Restore?

  • License removed first: If you remove the license before you restore the user from the Entra recycle bin, the mailbox does not return to the soft deleted state.
  • Holds: A Litigation Hold or eDiscovery hold stops a user mailbox from being removed.
  • Permanent deletion: Remove-MgDirectoryDeletedItem and Remove-Mailbox with -PermanentlyDelete cannot be undone.

For older on-premises setups, see our guide to restore a deleted mailbox in Exchange 2010. For single items in a shared mailbox, read how to recover deleted items from a shared mailbox.

What Do These Sources Not Say?

The Exchange Online article says you cannot use the Exchange admin center to delete or restore user mailboxes. It does not cover shared mailboxes and only points elsewhere for inactive mailboxes. The admin center article does not mention OneDrive or calendar items, and it does not state how many days remain for a given account; Microsoft asks you to contact support for that. The Exchange article's footer shows an update date of October 2023, so confirm details on the live page.

Frequently Asked Questions

How to restore deleted mailbox in Microsoft 365 after 30 days?

You cannot. After 30 days the account and mailbox are permanently deleted. The admin center article suggests contacting Microsoft 365 support if the account is not on the Deleted users page.

Can I use the Exchange admin center to restore a mailbox?

No. Use the Microsoft 365 admin center, Exchange Online PowerShell or Microsoft Graph PowerShell.

Is the license restored automatically?

No. Assign a license after the restore if the user needs Microsoft 365.

How long is the mailbox kept after a license is removed?

Microsoft holds the data for 30 days.

Key Takeaways

  • A deleted user and mailbox are recoverable for 30 days, not longer.
  • Restore from where the deletion happened: the admin center, Entra ID or Exchange Online.
  • Assign a license after the restore, and share the new password securely.
  • Holds, early license removal and permanent deletion can block recovery.

Sources and References

Facts follow Microsoft Learn.

  1. Delete or restore user mailboxes in Exchange Online, Microsoft Learn learn.microsoft.com
  2. Restore a deleted user in the Microsoft 365 admin center, Microsoft Learn learn.microsoft.com