spo site hubsite disconnect
Disconnects the specified site collection from its hub site
Usage
m365 spo site hubsite disconnect [options]
Options
-u, --siteUrl <siteUrl>URL of the site collection to disconnect from its hub site
-f, --forceDon't prompt for confirmation
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Disconnect a specific site collection from its hub site. Will prompt for confirmation before disconnecting from the hub site.
m365 spo site hubsite disconnect --siteUrl https://contoso.sharepoint.com/sites/sales
Disconnect a specific site collection from its hub site without prompting for confirmation.
m365 spo site hubsite disconnect --siteUrl https://contoso.sharepoint.com/sites/sales --force
Response
The command won't return a response on success.
More information
- SharePoint hub sites new in Microsoft 365: https://techcommunity.microsoft.com/t5/SharePoint-Blog/SharePoint-hub-sites-new-in-Office-365/ba-p/109547