Skip to main content

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, --force

Don'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, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs 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

CTRL + M