Others

Fix Exchange Online Mailbox Not in a Soft-Deleted State Error

Chanuka GeekiyanageChanuka Geekiyanage Nov 4, 2026 869 views

Question details

The user receives an error stating the mailbox is not in a soft-deleted state when attempting to permanently delete an Exchange Online mailbox.

Fix Exchange Online Mailbox Not in a Soft-Deleted State
Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
Attempting to permanently delete a user mailbox using the Remove-Mailbox cmdlet with the PermanentlyDelete parameter.
Observed behavior
An error is returned indicating the mailbox is not soft-deleted, preventing the permanent deletion of the mailbox.
Before you start

Ensure you have the necessary Exchange Online Administrator privileges and the Exchange Online PowerShell module installed before running diagnostic cmdlets.

Solution 1Recommended

Verify Mailbox Status and Retention Holds via PowerShell

Determine if the mailbox is still active, soft-deleted, or protected by Litigation Hold preventing permanent deletion.

Before a mailbox can be permanently deleted, it must be in a soft-deleted state. Active mailboxes or those protected by compliance holds will reject the PermanentlyDelete parameter.

1
Check for an active mailbox

Connect to Exchange Online PowerShell and run 'Get-Mailbox -Identity user@domain.com'. If the command returns mailbox details, the mailbox is currently active and not soft-deleted.

2
Check for a soft-deleted mailbox

If the previous command returns nothing, run 'Get-Mailbox -SoftDeletedMailbox | Format-List ExchangeGuid,Guid,PrimarySmtpAddress' to verify if the mailbox is successfully in a soft-deleted state.

3
Verify retention policies and Litigation Hold

Run 'Get-Mailbox -Identity user@domain.com | Format-List LitigationHoldEnabled,InPlaceHolds'. If LitigationHoldEnabled is True or if there are InPlaceHolds listed, you must remove them before the mailbox can be purged.

4
Check Azure AD Connect sync status

Ensure that the Azure AD user is not being actively synced from an on-premises environment, which can cause the cloud mailbox to remain active.

Important: Do not manually purge the Azure AD user until you have fully confirmed the mailbox status.
Free Microsoft Office alternative

Draft IT Scripts and Reports with WPS Office

While troubleshooting complex Exchange Online and Microsoft 365 administrative issues, you might need a reliable productivity suite to document PowerShell scripts and IT procedures. WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office.

Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx) for sharing IT reports.Lightweight design ensures smooth performance alongside heavy administration tools.All-in-one suite covering Writer, Spreadsheet, Presentation, and PDF workflows.Free to download and use with an intuitive interface familiar to IT professionals.
microsoft office alternative - wps office

Frequently Asked Questions

What does soft-deleted mean in Exchange Online?

A soft-deleted mailbox is one that has been deleted but is still within the 30-day retention period (by default). During this time, it can be recovered before being permanently purged from Microsoft's servers.

Why does Litigation Hold prevent mailbox deletion?

Litigation Hold is a compliance feature designed to preserve all mailbox content for legal or regulatory reasons. While a hold is active, Exchange Online explicitly blocks administrators from permanently deleting the mailbox or its contents to prevent data spoliation.

How do I force a permanent deletion in Exchange Online after checking holds?

You must first ensure all retention policies and Litigation Holds are removed. Once the mailbox is confirmed to be in a soft-deleted state using the Get-Mailbox -SoftDeletedMailbox cmdlet, you can safely use the Remove-Mailbox -PermanentlyDelete command.