Note: In order to use these PowerShell scripts, you need to have the Microsoft Online Services Migration Tools installed on your computer in addition to having directory synchronization enabled on your account.
PowerShell script that leverages the Microsoft Online PowerShell Commandlets to delete users from Microsoft Online.
- Modify Users.csv file to contain the accounts you wish to delete.
- Launch Microsoft Online PowerShell Console from start menu.
- Download and run the following script: DeleteUsersFromMSO.zip