Skip to content

Cannot unregister a HubSite if it's deleted #1621

@wobba

Description

@wobba

Category

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APIarea:otherCategory: unknown (does not fit any other category)status:fixed-next-dropIssue planned to be fixed in an upcoming release.status:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions