Delete mailbox exchange online without delete user

Copper Contributor

Hi 

There is a way to delete mailBox exchange online without delete user ?

the users are synchonized with AAD connect and  they used another application ( Teams and sherepoint ..) 

I found microsoft post to do that by it delete the user !! 

 

https://docs.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-user-mailboxes/use-po...

 

Thank you 

4 Replies

The safest method is to remove the Exchange Online license.

 

Other than that, depending on the situation, you might use the method listed here: https://techcommunity.microsoft.com/t5/exchange-team-blog/permanently-clear-previous-mailbox-info/ba.... Or the Disable-Mailbox cmdlet. But both these methods only work in specific scenarios.

Bonjour
Merci pour votre retour
En effet jai trouvé la solution ci-dessous sans libérer les licenses
https://kb.cloudiway.com/article/how-to-delete-a-mailbox-content-in-office-365-or-exchange/

Merci

@Kais_mbarki 


Désolé, mon français n'est pas bon.

 

Les boîtes aux lettres Office 365 dans Exchange Online sont synchronisées étroitement avec le compte d'utilisateur Office 365. Vous pouvez essayer de supprimer l'option de messagerie électronique de leur licence, mieux d'Azure Active Directory.

 

Depuis AD Dashboard: Utilisateurs -> Cliquez sur Nom -> Licences -> Cliquez sur la licesnse qui fournit la boîte aux lettres d'échange (E3, E1, A1, Business, etc.). -> Désactiver Exchange Plan.

Vous pouvez également le faire à partir de PowerShell connecté à Active Directory, mais je vous déconseille de falsifier directement Exchange Online. Cela peut devenir un peu compliqué.

J'espère que cela t'aides.

 

---------------------------------

 

Office 365 mailboxes in Exchange Online are synced tightly to the Office 365 User account.  You could try removing the email option from their license, best from Azure Active Directory.

From AD Dashboard: Users --> Click Name --> Licenses --> Click the licesnse that provides theexchange mailbox (E3, E1, A1, Business, etc).  --> Turn off Exchange Plan.

You can also do this from PowerShell connected to the Active Directory,but I would advise not tampering with Exchange Online directly.  It can get a little fiddly.

Hope this helps.

The way I found to empty a user mailbox :

Search-Mailbox "email address removed for privacy reasons" -DeleteContent -force -WhatIf

 

* to really  run the command make sure you remove the dash "whatif" statement from the command line

search-mailbox - delete contentsearch-mailbox - delete content

note that you will receive a warning message stating that the command let is being retired. but it still works . last time I tried was  2022-05-31