Fix Exchange Online Mailbox Not in a Soft-Deleted State Error
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.

- 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.
Ensure you have the necessary Exchange Online Administrator privileges and the Exchange Online PowerShell module installed before running diagnostic cmdlets.
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.
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.
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.
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.
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.
Verify Active Users in Microsoft 365 Admin Center
Ensure the user account hasn't been accidentally restored in the cloud administration portal.
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.

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.




