Guide · Recovery
Whether the mailbox comes back depends on which of three states it is in and how many days have passed. How to tell, the commands for each, the OneDrive clock that runs separately, and what cannot be recovered.
By Alex Makey · 6 September 2026 · 7 min read · Verified against Microsoft documentation, September 2026
A user was deleted, a licence was removed, a mailbox disappeared. The panic is usually unnecessary and occasionally justified, and the difference is which of three states the mailbox is in and how many days have passed. Here is how to tell, and what to run.
Active, licence removed. The user still exists in Entra ID; only the licence is gone. The mailbox is soft-deleted and retained for about thirty days. Reassign a licence and it reconnects, usually within minutes, with everything in it.
User deleted. The user is in the Entra ID recycle bin for thirty days. Restore the user and the mailbox comes back with them, provided the thirty days have not passed and nothing has been purged. This is the common case and the easy one.
Purged. Thirty days have passed, or someone permanently deleted the user from the recycle bin. If a hold was in place, the mailbox is inactive and fully recoverable. If not, it is gone, and no support ticket changes that.
In Exchange Online PowerShell:
Get-Mailbox -SoftDeletedMailbox | Select DisplayName, WhenSoftDeleted, ExchangeGuid
Get-Mailbox -InactiveMailboxOnly | Select DisplayName, WhenSoftDeleted
And in the Entra admin centre, Users → Deleted users, which shows the recycle bin with a deletion date for each.
If the mailbox appears in the first list, it is recoverable. In the second, it is inactive and recoverable by restore or recovery (below). In neither, and not in the deleted users list, it is gone.
Entra admin centre → Users → Deleted users → select → Restore. Or in Graph PowerShell, Restore-MgDirectoryDeletedItem -DirectoryObjectId <id>. The user returns with the same object ID, group memberships and licence assignments, and the mailbox reconnects. Give it a few minutes before concluding it did not work.
If a new user was created with the same address in the meantime, the restore fails on a conflict. Rename the new user first.
Sometimes the original user is gone but a new account exists and needs the old mail. Exchange Online supports connecting a soft-deleted mailbox to a new mailbox by merging:
New-MailboxRestoreRequest -SourceMailbox <soft-deleted ExchangeGuid> -TargetMailbox newuser@contoso.com -AllowLegacyDNMismatch
The content is copied into the target mailbox. The soft-deleted source stays soft-deleted and is purged on schedule. This is the right tool when someone left and their replacement needs the history under their own account.
Two different operations, and the difference matters.
Recover turns the inactive mailbox back into an active one, for the same or a new user, removing it from inactive state. Use it when the person is back.
Restore copies the contents of the inactive mailbox into another active mailbox, leaving the inactive one in place under its hold. Use it when someone else needs the content and the hold has to stay.
# Recover to a new user
New-Mailbox -InactiveMailbox <ExchangeGuid> -Name "Jane Doe" -DisplayName "Jane Doe" -MicrosoftOnlineServicesID jane@contoso.com -Password (Read-Host -AsSecureString)
# Restore into an existing mailbox
New-MailboxRestoreRequest -SourceMailbox <ExchangeGuid> -TargetMailbox manager@contoso.com -AllowLegacyDNMismatch
Separate service, separate clock. When a user is deleted, their OneDrive is retained for the period set in the SharePoint admin centre — thirty days by default, configurable up to ten years. Within that period, restore the user and the OneDrive returns. Or, without restoring the user, a SharePoint administrator can access the deleted OneDrive from the user’s profile in the admin centre and copy what is needed.
Set the retention longer than thirty days. It costs nothing and it is the single change that would have saved most of the files people ask about.
A mailbox purged after the grace period with no hold. A OneDrive past its retention. A user permanently deleted from the recycle bin. Items a user deleted from Recoverable Items more than the retention period ago. For all of these the answer is a backup, if there is one, and Microsoft’s own retention is not one.
One email a month, at most
Postmortems, timelines, licensing changes that cost people money. If a month has nothing worth your time, you hear nothing.
Please enter a work email address.
Done. Unsubscribe by replying to any email; we will not argue.
Related questions
In the Entra admin centre, Users, Deleted users, select the user, Restore, within thirty days of deletion. The user returns with the same object ID and licences and the mailbox reconnects. If a new user was created with the same address, rename it first.
Not yet. The mailbox is soft-deleted and retained for about thirty days. Reassign a licence and it reconnects with its contents. After the grace period it is purged unless a hold was in place.
Use New-MailboxRestoreRequest to copy the soft-deleted or inactive mailbox into the replacement’s active mailbox. The source stays in its current state.
Recover turns the inactive mailbox back into an active mailbox for a user, ending the inactive state. Restore copies its contents into another active mailbox and leaves the inactive one in place under its hold.
For the retention period set in the SharePoint admin centre, thirty days by default and configurable up to ten years. Within that period, restoring the user restores the OneDrive, or an administrator can access it directly.
Rather not do this yourself?
Describe the situation and you get back a sequence, an honest view of what will be slow, and a fixed price — usually within one business day. Or ask one question and get one answer.