Table of Contents

Unregister-PnPHubSite

SYNOPSIS

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Unregister a site as a hubsite.

SYNTAX

Unregister-PnPHubSite -Site <SitePipeBind> [-Connection <PnPConnection>] 

DESCRIPTION

Allows to unregister a site as a hubsite.

EXAMPLES

EXAMPLE 1

Unregister-PnPHubSite -Site "https://tenant.sharepoint.com/sites/myhubsite"

This example unregisters the specified site as a 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: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Site

The site to unregister as a hubsite.

Type: SitePipeBind
Parameter Sets: (All)

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices