Permanently removing deleted user accounts from Office 365

While migrating from Exchange to Office 365 I ended up creating, deleting and recreating a lot of user accounts. When you delete an user account from Office 365 it is not deleted immediately, but rather suspended. This is nice, because it means you can recover if deleted by mistake. After 30 days the user accounts are automatically permanently deleted.

Removing and recreating a user account sometimes seems to create problems, so I decided to find out how to permanently remove deleted user accounts manually. This post describes how this can be done using PowerShell and the Azure Active Directory (AD) Module. The Azure AD Module for Windows PowerShell let’s you perform AD administrative tasks such as user management, domain management and configuring single sign-on. Continue reading