Toll Free: +1 888 900 4529 |   Toll Free: +44 800 088 5522

How to Permanently Remove Deleted Users from Office 365

Angelbrown Leka | March 24th, 2015 | Office 365

When any user from the control panel of office 365 gets deleted, then it gets moved into the recycle bin that remain there for 30 days. It is so because if the user gets deleted unintentionally then it can be recovered easily from the recycle bin.

PowerShell is one of the best option, to remove permanently a user from the Office 365. To accomplish the task using PowerShell “Azue Active Directory Module for the PowerShell” should be installed into the Computer.

exchange-recovery-new

First of all, you need to connect with the Azure Active Directory. For that, use Command Connect-MsolService and enter the Credentials.

ps1

To know the users that have been deleted, Run the Commnd Get-MsolUser with its attribute –ReturnDeletedUsers.

ps-2

ps-3

To Completely remove a user from the Recycle Bin use the command Remove_MsolUser as given below

ps-4

If you wanted to delete all the users, then pipe the output of the Get-MsolUser command into the Remove-MsolUser with the Force Switch as shown below

ps-5

Conclusion:

The method Explained above is for the users who wanted to completely remove a user from the Office 365. In case, if you got struck anywhere, Please let us know. We will try our best to resolve your query.

The following two tabs change content below.

Angelbrown Leka

Angelbrown Leka is a software developer by profession. She loves to write technical blogs over distinct topics pertaining to the issues of Exchange server and Outlook environment. She has earned certification in MCTS and her areas of specialization are MS Exchange server and Outlook platforms.