An Engineers Notebook

How to Permanently Remove Deleted Users from Office 365

Problem

When you delete a user from the Office 365 control panel they are moved into a recycle bin for 30 days so that they can be recovered easily if the deletion was not intended.

However, if you want to permanently remove a deleted user in Office 365 you can use PowerShell. For this task you will need the Azure Active Directory for PowerShell module installed on your computer.

Solution

First, connect to your Azure Active Directory by running Connect-MsolService and entering your admin credentials in the dialog box that appears.

Connect-MsolService

To see a list of the deleted users run Get-MsolUser with the -ReturnDeletedUsers switch.

Get-MsolUser -ReturnDeletedUsers

You can remove a specific deleted user with Remove-MsolUser and the -RemoveFromRecycleBin switch.

Remove-MsolUser -UserPrincipalName [email protected] -RemoveFromRecycleBin
Reference, Links and Imges

https://practical365.com/exchange-server/permanently-remove-deleted-users-office-365/

Leave a Reply

Your email address will not be published.