Commands › SharePoint Online
Unregister-SPOHubSite
Disables the hub site feature on a site.
Quick start script
# Unregister-SPOHubSite — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Unregister-SPOHubSite -Identity <SpoHubSitePipeBind> | Format-List
# 3. Export for evidence / drift tracking
Unregister-SPOHubSite | Export-Clixml .\SPOHubSite-$(Get-Date -Format yyyyMMdd).xml
Syntax
Unregister-SPOHubSite [-Identity] <SpoHubSitePipeBind> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.