The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.
Dear @Aslanidis Athanasios,
Good day! Welcome to Microsoft Q&A forum!
Based on your description, I understand that you're seeking clarification on Exchange Online mailbox deprovisioning behavior in a Hybrid Exchange environment. Previously, removing Microsoft 365 licenses from a disabled, synchronized user would result in the mailbox being soft-deleted within a few days. Recently, you've observed that the mailbox remains active and continues to appear as a UserMailbox after license removal, and you'd like to understand whether this behavior has changed and what conditions might be preventing mailbox deprovisioning.
Thank you for the detailed information.
Based on my experience, if this is a hybrid Exchange environment, there are a couple of scenarios that would typically result in the Exchange Online mailbox being soft-deleted:
- Run the Disable-RemoteMailbox cmdlet from the on-premises Exchange environment and then perform an Entra Connect delta synchronization. Combined with the removal of the Exchange Online license, this updates the msExchRemoteRecipientType attribute to DeprovisionMailbox, which should trigger Exchange Online to soft-delete the mailbox.
- If the user account is no longer required, another common approach is to remove the user from Entra Connect synchronization scope or delete the user from on-premises Active Directory. Once the change synchronizes to Microsoft Entra ID, the mailbox should follow the normal deprovisioning process. Also, could you please confirm whether any type of hold is currently applied to the mailbox?
Some of the most common holds that can prevent a mailbox from being deprovisioned are:
- Microsoft Purview Retention Policy
- Litigation Hold
- eDiscovery Hold
- Compliance Tag Hold
If any of these holds are in place, Exchange Online may not be able to fully disable or remove the mailbox after the Exchange Online license is removed. In such cases, the mailbox can remain active or be preserved for compliance and retention requirements.
Could you please check and let me know if any holds or retention policies are configured on the affected mailbox?
Thank you for your time and patience.