Commands › SharePoint Online
Remove-SPOContentEventEmailAddresses
Removes the email addresses associated with the specified category of content event if they exist. Consequently, notification emails will no longer be sent to these addresses.
Quick start script
# Remove-SPOContentEventEmailAddresses — 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-SPOContentEventEmailAddresses
$before | Format-List
# 3. Make the change
Remove-SPOContentEventEmailAddresses -Category <ContentEventCategory> -EmailAddresses <String[]>
# 4. Verify and diff
$after = Get-SPOContentEventEmailAddresses
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Remove-SPOContentEventEmailAddresses [-Category] <ContentEventCategory> [-EmailAddresses] <String[]>
[<CommonParameters>]
Parameters (2)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.