
Explanation/Reference:
Explanation:
Contoso users have access to multiple shared files and multiple shared sites throughout the SharePoint site structure.
The easiest way to remove Contoso users' access to all the shared resources is to remove the Contoso users at the top level of the SharePoint structure, the Tenant.
The Remove-SPOExternalUser PowerShell cmdlet is used to remove a collection of external users from the tenancy's folder.
To run the Remove-SPOExternalUser cmdlet, we first need to open the SharePoint Online management Shell (Step 1) and connect to the SharePoint Online tenant by running the Connect-SPOService cmdlet (Step 2). We can then run the Remove-SPOExternalUser cmdlet as in Step 3.
References:
https://technet.microsoft.com/en-gb/library/jj730437.aspx