Remove-SPOUserProfile
Remove user profile from the tenant.
Syntax
Remove-SPOUserProfile
-LoginName <String>
[<CommonParameters>]
Description
Can be used to remove the SharePoint user profile from the tenant.
Note
The User must be first be deleted from Microsoft Entra ID before the user profile can be deleted. You can use the Microsoft Entra cmdlet Remove-AzureADUser for this action
Examples
------------ Example 1 --------------------
Remove-SPOUserProfile -LoginName joe.healy@contoso.com
Example 1 removes a user who has the e-mail address joe.healy@contoso.com from the SharePoint Online User Profiles of the particular tenant.
Parameters
-LoginName
Specifies the login name of the user which user profile is deleted.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |