20+ years with Microsoft 1,100+ organisations under management 131 countries invoiced locally 4 of 6 Solutions Partner designations 4-hour first response
IT Partner.Microsoft Solutions Partner +44 20 8142 5752 Talk to us Get a quote

HomeBlog › Offboarding

Guide · Offboarding

What happens when you remove a Microsoft 365 licence, and how to keep the mailbox

Remove the licence and wait thirty days and the mailbox is gone. The three ways to keep it, the exact order that matters, and the traps that catch people every week in Microsoft’s own forums.

By Alex Makey · 6 September 2026 · 7 min read · Verified against Microsoft documentation, September 2026

This is the most-asked question in Microsoft’s own support forums, and the reason is that the default outcome is bad: remove the licence, wait thirty days, and the mailbox is gone. Here is what actually happens, the three ways to keep the data, and the order that matters.

What happens, step by step

The moment the licence is removed, the user can no longer sign in to Exchange Online. Mail sent to the address is still accepted for a short while, then bounces. OneDrive follows its own retention setting (default 30 days after the account is deleted, not after the licence is removed).

For the next thirty days the mailbox is soft-deleted. It exists, it can be restored by reassigning a licence, and nothing has been lost. This is a grace period, not a guarantee — Microsoft describes the timing as approximate.

After thirty days the mailbox is purged unless a hold was in place. Purged means gone. There is no support ticket that brings it back.

The exception is a mailbox under litigation hold or a retention policy: instead of being purged it becomes an inactive mailbox — invisible in the address book, costing nothing, searchable through eDiscovery for as long as the hold lasts.

The three ways to keep the data

Convert to a shared mailbox. The right answer for most leavers. The mailbox keeps everything, needs no licence up to 50 GB, and colleagues who need the history are given access. Convert while the licence is still assigned, then remove the licence. Do it the other way round and the conversion fails.

Put it on litigation hold. The right answer when the record might matter later — anyone client-facing, anyone in a regulated role, anyone leaving under a cloud. Requires an Exchange Online Plan 2 licence (included in E3 and E5) at the moment the hold is placed. Then remove the licence; the mailbox becomes inactive and costs nothing.

Keep the licence. The expensive answer, and the one people default to by not deciding. Sometimes right for a short handover period. Never right for the eleven leavers from 2023 who are still on the bill.

The order, exactly

1 — DecideShared mailbox, hold, or delete
2 — Block sign-inEntra admin centre → user → Block sign-in; revoke sessions
3 — Convert or holdWhile the licence is still assigned
4 — Grant accessDelegate the shared mailbox to whoever inherits the work
5 — Forward or auto-replySet on the shared mailbox, not the user
6 — Remove the licenceOnly now
7 — DevicesWipe or retire in Intune; remove from MFA
8 — Delete the userOptional; 30 days to restore from the deleted users list

In PowerShell

Connect to Exchange Online, then:

Set-Mailbox -Identity leaver@contoso.com -Type Shared
Add-MailboxPermission -Identity leaver@contoso.com -User manager@contoso.com -AccessRights FullAccess -AutoMapping $true
Set-Mailbox -Identity leaver@contoso.com -ForwardingAddress manager@contoso.com -DeliverToMailboxAndForward $true

For a hold instead of a conversion:

Set-Mailbox -Identity leaver@contoso.com -LitigationHoldEnabled $true

Then remove the licence in the admin centre or with Microsoft Graph. Check the result a day later with Get-Mailbox leaver@contoso.com | Select RecipientTypeDetails, LitigationHoldEnabled.

The traps

The 50 GB limit. A shared mailbox over 50 GB, or with an archive, or on litigation hold, needs an Exchange Online Plan 2 licence. Check the size before converting: Get-MailboxStatistics leaver@contoso.com | Select TotalItemSize.

Converting after removal. The most common mistake. Once the licence is gone the mailbox is soft-deleted and Set-Mailbox -Type Shared fails. Reassign a licence, wait for the mailbox to reactivate, convert, remove again.

Forwarding on the user. Forwarding set on a user mailbox stops working when the mailbox is soft-deleted. Set it on the shared mailbox after conversion.

OneDrive. Files are retained for the period set in the SharePoint admin centre (default 30 days) after the user is deleted, not after the licence is removed. Assign a manager as secondary owner before deleting, or extend the retention.

The hold and the licence. The hold has to exist before the licence is removed. Remove first and the mailbox is purged after thirty days, hold or no hold.

What we actually recommend

Convert to shared by default. Hold for anyone whose record might be needed in a dispute. Review shared mailboxes once a year and delete the ones nobody has opened. That policy costs nothing, keeps every leaver’s mail, and removes the licence the day they leave — which, across a company of a few hundred, is usually the largest single licensing saving available.

One email a month, at most

New guides, when there is one worth sending

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.

Related questions

Asked most often

What happens to a Microsoft 365 mailbox when the licence is removed?

The mailbox is soft-deleted and held for about thirty days, during which it can be restored by reassigning a licence. After that it is permanently purged unless a litigation hold or retention policy was in place, in which case it becomes an inactive mailbox.

Can I keep a leaver’s email without paying for a licence?

Yes. Convert the mailbox to a shared mailbox while the licence is still assigned, then remove the licence. Shared mailboxes need no licence up to 50 GB. Alternatively, place the mailbox on litigation hold before removing the licence and it becomes an inactive mailbox at no cost.

Why did converting to a shared mailbox fail?

Almost always because the licence had already been removed. A soft-deleted mailbox cannot be converted. Reassign a licence, wait for the mailbox to reactivate, convert it, then remove the licence.

Does a shared mailbox ever need a licence?

Yes, when it exceeds 50 GB, uses an archive, or is placed on litigation hold. In those cases it needs an Exchange Online Plan 2 licence.

Does litigation hold work if I remove the licence first?

No. The hold must be in place before the licence is removed. Remove the licence first and the mailbox is purged after the grace period regardless of the hold you intended to apply.

Related

Worth reading next

Rather not do this yourself?

We do it several times a month

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.