Hard Delete an Office 365 User

Use case:

Sometimes, I have needed to completely remove a user from Office365. This can be due to needing to recreate them or for some other reason. Whatever the need, a soft delete will not cut it. When you soft delete a user from the “Active Users” section in the Office 365 Admin Center, that user will remain in the “Deleted Users” section for 30 days. After 30 days, the user is then purged from Office 365. When you need to purge a user immediately, follow this hard delete procedure:


  1. Soft delete the user either using the Office365 Admin Center, or through powershell:

Remove-MsolUser -UserPrincipalName <UserPrincipalName>

2. This next step must be done in powershell. Use the following commandlet to purge the user from Office 365:

Remove-MsolUser -UserPrincipalName <UserPrincipalName> -RemoveFromRecycleBin


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s