Query on Hubsite

Roger Roger 4,956 Reputation points

Hi All

i have a SharePoint site. i want to unlink hubsite to this sharepoint site from sharepoint online powershell. Experts help me with the powershell syntax to unlink the Hubsite.

PS C:\Windows\system32> get-sposite https://contoso.sharepoint.com/sites/Test1 | fl
HubSiteId : abgt6d987-g567-984y-kj78-n48979a7e56h
IsHubSite : False
GroupId : 8uio8i79-lkio-kloi-i90o-jhuykku12890
Url : https://contoso.sharepoint.com/sites/Test1

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,247 questions
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,836 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,835 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yi Lu_MSFT 17,461 Reputation points

    Hi @Roger Roger
    You could try this cmd Remove-SPOHubSiteAssociation https://contoso.sharepoint.com/sites/Research, which removes the research site from the marketing hub site.

    For more information, you could refer to:

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful