How-To Video - Purge Soft-deleted mailboxes in O365

Play How-To Video - Purge Soft-deleted mailboxes in O365

The Discussion

  • User profile image
    Wperry1

    During a recent migration I had need to clean up a large number of soft deleted mailboxes so I wrote a script to do it automatically. See it here.

    https://www1.wperry.net/code/soft-deleted-mailbox-cleanup/

  • User profile image
    Davide

    Hi - Thank you for your detailed description. I was facing a similar problem and with your step-by-step instruction it could be solved. We had the problem, that some user accounts were created in O365 before we started with the AD Sync. These accounts are provided with a mailbox. As soon as you have the AD Sync active for these accounts it is not possible to migrate a mailbox from local to online. It is only possible, when deleting the mailbox. Weak point of this approach is, that also the OneDrive is deleted.

  • User profile image
    David

    Absolute lifesaver. The bit about reconnecting the mailbox to a new user and then being able to delete the other offending mailbox was the winner here. Thanks for this.

Add Your 2 Cents