On the surface, it seems easy to run the Remove-Mailbox cmdlet to permanently remove an Exchange Online mailbox. But when you need to remove inactive mailboxes and things like retention policies and holds get involved, things become a lot more complex.
https://practical365.com/remove-inactive-mailbox/