Commands › SharePoint Online

Remove-SPOUserInfo

SharePoint Online Microsoft.Online.SharePoint.PowerShell Remove-*

Do not use.

Quick start script

# Remove-SPOUserInfo — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOUserInfo
$before | Format-List

# 3. Make the change
Remove-SPOUserInfo -LoginName <String> -Site <SpoSitePipeBind>

# 4. Verify and diff
$after = Get-SPOUserInfo
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-SPOUserInfo -LoginName <String> -Site <SpoSitePipeBind> [-RedactName <String>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-LoginName String yes Do not use.
-RedactName String Do not use.
-Site SpoSitePipeBind yes Do not use.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.