Forum Discussion
Hirofumi OTA
Mar 29, 2018MVP
Removed Hub Site still display as Hub Site
I did create Hub Site by SharePoint Online Management Shell. after, I did remove that Hub Site permanentaly by SharePoint Online Management Shell (using Remove-SPOSite and Remove-SPODeletedSite).
...
- Jan 26, 2019
Just in case anyone runs into this.......
- Download and Install latest version of SharePoint OnlineManagement shell for Powershell
https://www.microsoft.com/en-US/download/details.aspx?id=35588 - Connect to Sharepoint Online admin site via powershell
Connect-SPOService -Url "https://<tenant>-admin.sharepoint.com" - View hubsite information
Get-SPOHubsite - Copy the ID of the hubsite you wish to delete
- Run the unregister command and add the ID
Unregister-SPOHubSite 4f4cfc32-5331-4af8-8e96-eb820653d8dc
(note that I did NOT add "-Identity" when using only the ID of the hubsite
- Download and Install latest version of SharePoint OnlineManagement shell for Powershell
Beau Cameron
Sep 17, 2019MVP
Hirofumi OTA As someone else has suggested, you have to use the GUID of the site that was deleted.
This is outlined in the documentation.
pnthrzrule
Jan 02, 2020Iron Contributor
Whoa! This worked like a charm! Thanks for this tip! At first I was a little concerned about locating the GUID since I had already deleted the Hub site in the admin center. However, running Get-SPOHubsite in the SPOnline mgmt shell actually showed met he GUID for the deleted sites (which I think is kinda weird). Either way I was able to grab the id and they were gone in a flash. I had been living with these annoyances for over a year!