Unregister-SPOHubSite

Disables the hub site feature on a site.

Syntax

Unregister-SPOHubSite
          [-Identity] <SpoHubSitePipeBind>[-WhatIf]
          [-Confirm][<CommonParameters>]

Description

Disables the hub site feature on a site so that it is no longer a hub site. Associated sites may still appear associated for up to an hour. If you want to speed up the process, use the Remove-SPOHubSiteAssociation cmdlet to remove the associates sites first.

Important

This cmdlet is currently in preview and is subject to change. It is not currently supported for use in production environments.

If the site doesn’t exist, this cmdlet returns a “File not found” error.

Examples

Example 1

Unregister-SPOHubSite https://contoso.sharepoint.com/sites/Marketing

This example disables the hub feature on the marketing site.

Required Parameters

-Identity

URL of the site to disable the hub site feature.

Type:SpoHubSitePipeBind
Aliases:HubSite
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online