Forum Discussion

Tycho Bizot's avatar
Tycho Bizot
Copper Contributor
Apr 29, 2018
Solved

[Bug] - Too many hub sites if you don't unregister them before deleting

I just ran into this issue on a test tenant when testing/developing a PowerShell script to deploy a new intranet based on hub sites. 

If you create sites, register them as a hub site and then delete the sites again skipping the recycle bin without unregistering them as a hub site first you'll find out that at some point you can't create new hub sites anymore and will receive the error "too many hubsites". 

Get-SPOHubSite returns all the hub sites previously created, but since the sites don't exist anymore there is no way to unregister them.

Resources