Edit

Share via


Remove-SPOHubSiteAssociation

Removes a site from its associated hub site.

Syntax

Default (Default)

Remove-SPOHubSiteAssociation
    [-Site] <SpoSitePipeBind>
    [<CommonParameters>]

Description

Use this cmdlet to remove an association between a site and a hub site.

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 or hub site doesn't exist, this cmdlet returns a "File not found" error.

Examples

Example 1

Remove-SPOHubSiteAssociation https://contoso.sharepoint.com/sites/Research

This example removes the research site from the marketing hub site.

Parameters

-Site

Applicable: SharePoint Online

URL of the site to remove from the hub site.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Outputs

System.Object