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 AAD before the user profile can be deleted. You can use the Azure AD 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 |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
Related Links
Feedback
Submit and view feedback for