Remove-SPOUserProfile

從租使用者移除使用者設定檔。

Syntax

Remove-SPOUserProfile
      -LoginName <String>
      [<CommonParameters>]

Description

可用來從租使用者中移除 SharePoint 使用者設定檔。

注意事項

必須先從 AAD 刪除使用者,才能刪除使用者設定檔。 您可以針對此動作使用 Azure AD Cmdlet Remove-AzureADUser

範例

------------ 範例 1 --------------------

Remove-SPOUserProfile -LoginName joe.healy@contoso.com

範例 1 會從特定租使用者的 SharePoint Online 使用者設定檔中移除具有電子郵件地址 joe.healy@contoso.com 的使用者。

參數

-LoginName

指定要刪除使用者設定檔之使用者的登入名稱。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online