Reference article:

https://docs.microsoft.com/en-us/exchange/recipients-in-exchange-online/delete-or-restore-mailboxes

 

remove-user -identity UPN

wait synchro

disable-mailbox UPN -permanentlydisable -ignorelegalhold

 

Advertisements