I've read in circles trying to find out if there is a shell command to specifically delete a mailbox for a user and subsequently (or same time) delete/purge the archive mailbox for that account. We have a massive amount of accounts to delete and have them all pst'd ready for removal and do not want them sitting in disconnect state for 30 days and would prefer not to have to have to routinely run a command to purge the disconnects on the database.
I've used the Remove-Mailbox -Identity $User.Alias -Permanent $true to do the removals and pullling detail from a csv, but while it cleans up the primary mailbox and AD nicely, the archive mailbox sits in disconnect state and I've had to revisit periodically to run another script to purge them, the second script has to pull the Guid to do it since there isn't an Alias anymore with the primary mailbox and AD object gone .. ugh. It works but seems like a lot of work to really get rid of accounts out of the system for good.
It would be nice if the Remove-Mailbox command with permanent offered the option to apply it to the archive at the same time. Just seems like something that would be easy to do but maybe I'm expecting too much.