Sp-dev-docs: Cannot unregister a HubSite if it's deleted

Created on 10 Apr 2018  路  7Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [x] Bug

Related issue: https://github.com/MicrosoftDocs/office-docs-powershell/issues/662

Expected or Desired Behavior

One of two:

  • Either deletion of a site should be blocked if it's a hub site or has sites associated to the hub
  • Deletion of a site should also unregister it as a hub site

Observed Behavior

I get "File not found" when running Unregsiter-SPOHub site on a deleted site.

Steps to Reproduce

  • Create a new site
  • Register it as hub site
  • Delete the site
  • (empty recycle bin)
  • Try to run Unregister-SPOHubSite
csorest other fixed-next-drop tracked bug-suspected

Most helpful comment

Thanks for reporting this. This is an unfortunate and known issue which is in the top of mind to get fixed within upcoming weeks. There are no workarounds for this for now.

All 7 comments

Thanks for reporting this. This is an unfortunate and known issue which is in the top of mind to get fixed within upcoming weeks. There are no workarounds for this for now.

Thank you and a good thing it's in preview and I can live with the dummy ones on my dev tenant :)

Has this been fixed in the "May 2018 Intermediate Release 1"? If so, i couldn't find a way to remove the old/dummy ones. Did i miss something or isn't this possible yet?

No, this is not fixed in PnP. We need to update the CSOM version first. In the mean time you can use the latest SPO cmdlets to unregister your hub site.

I have the same problem: I deleted a Hub site without un-registering as a such. Unfortunately I also deleted it from the recycle bin. Will creating a new site with the same URL as the deleted site replace the old Hub registration?

No, use the SPO cmdlet to unregistered it, or wait for the the June PnP release which has a fix.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SteIvanov picture SteIvanov  路  3Comments

waldekmastykarz picture waldekmastykarz  路  3Comments

karishmaTCS picture karishmaTCS  路  3Comments

acksoft picture acksoft  路  3Comments

ken-harris picture ken-harris  路  3Comments