Remove-PnPHubSiteAssociation

Disconnects a site from a hubsite.

Syntax

Remove-PnPHubSiteAssociation
      -Site <SitePipeBind>
                                  [-Connection <SPOnlineConnection>]

Description

Disconnects an site from a hubsite

Examples

------------------EXAMPLE 1------------------

Remove-PnPHubSiteAssociation -Site https://tenant.sharepoint.com/sites/mysite

This example adds the specified site to the hubsite.

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Site

The site to disconnect from its hubsite

Type:SitePipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False