Forum Discussion
msissues2552
Mar 20, 2023Copper Contributor
Disabling mailbox in Exchange Online - VB.NET
Hello I had used a code in the past - to disable AD accounts and mailboxes (VB.NET) for terminated users, that I used for years without a problem. Trying to set it up at my new job, however code doe...
msissues2552
Mar 21, 2023Copper Contributor
mderooij thank you. So how do I soft delete mailbox (which command)? Which command removes the license?
mderooij
Mar 21, 2023MVP
There is no command in EXO. What you can do is unlicense/remove the EXO plan through Graph, or when using Group-Based Licensing, you can remove the user from the group that provides the plan. Note that deprovisioning is not instant, so you might require a few checks (loop) when waiting for the deprovisioning to take place.