Deleted hub sites still visible in the Hub picker list
For our testing purposes, we have created multiple hub sites. We have created couple other modern team and communication sites as well which are now associated with these hub sites.
As part of the cleanup process, we deleted these sites. However, we noticed that the deleted hub sites are still visible in Hub picker list.
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea

Expected or Desired Behavior
Once the hub site is deleted, they should not be available for association. They should not be visible in the hub picker list.
Observed Behavior
Currently, deleted hub sites are visible in the picker.
When we try to associate a newly created site to the deleted hub site, we get File not found error .
The error should be more meaningful, something along the line of , Hub site has been deleted, you cant associate this site to the deleted site
Steps to Reproduce
- Create a comm site
- Set it as Hub site
- Create another comm site or modern team site
- Associate it to the hub site
- Delete all these sites
- Create a new comm site or modern team site
- Try to associate it to a hub. The deleted hub site is available in the hub picker list
Current work around is to manually run a PS command as below:
Unregister-SPOHubSite <SiteId>
or
Unregister-SPOHubSite <SiteUrl>
I can reproduce this and will work on with PG to resolve it.
As this is not really developer issue, rather happening apparently with any tenant using oob capabilities, we cannot, unfortunately, process this through this channel. Please report this from the Office 365 Admin support channels as we can only concentrate on pure developer topics. Sorry for the inconvenience and slow response time, but closing this for now as we can't handle this. Please do report these in Tenant admin process. Thx.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues