Forum Discussion

StefanFried's avatar
StefanFried
Iron Contributor
Mar 22, 2017
Solved

How to delete Group SPO site if O365Group was deleted?

usually if you delete an O365Goup, the process will/should delete the Group SPO Site, Group Mailbox, ...

..in my case the GRoup SPO Site remains :(  (opened already a support ticket)

 

i just want to raise one generic question here:

What is usually the process to delete an orphaned Group SPO Site ?

 

Remove-SPOSite does not work because the global admin is/was NOT part of the owner of the Site

Set-SPOSite to change the owner does also not work because it is a GRoup SPO --> owner and members are usually coming via the O365Group.....but the Group is gone

 

maybe i'm misunderstanding something here :(

thank you

stefan

  • Hello Dean

    u mean to set/add an owner to the orphaned Group Site and to delete it afterwards,right (or do you mean a different approach) ?

     

    Set-SPOSite -Identity https://<name>/sites/<sitename> -owner xxxxxxx@xxxxx.onmicrosoft.com

    Remove-SPOSite -Identity https://<name>/sites/<sitename> -noWait

     

    NOW, this works but this didn't work last time because i got the message saying that i can't change the Owner of a GroupSite (using the -owner parameter was not allowed for managing a Group Site)

    It seems that MS changed something now.

    At least i can delete them know "manually"

     

    Do you see in your environment orphaned GROUP SPO's or am i the only one ? :)

     

     

23 Replies

  • Scott Christian's avatar
    Scott Christian
    Copper Contributor

    I know this thread might a bit old, however for me I had to go into deleted sites in SharePoint Admin. Restore the site, that in turn restored the site all the other 365 group stuff.

    Then delete the site in SharePoint Admin not via the 365 groups admin.microsoft.com

    Then once it was deleted in SharePoint admin I could then select it from "deleted sites" and then click Permanently delete.

    Only then did everything remove.

    • StefanFried's avatar
      StefanFried
      Iron Contributor

      Scott Christiani find it really strange that these issues still occur. i really thought that MS has solved this already but it looks like that this is not the case.

       

      i may know a reason why there is less interest in solving this...but anyway

  • Shivam Raj's avatar
    Shivam Raj
    Copper Contributor

    hi all

    i had the same issue : deleted the group and the site got orphaned. So what i did is first I removed the site permanently using Remove-SPOSite and then Remove-SPODeletedSite. And then I removed the group and voila!!! there were no issues.

    • Harrie Kohler's avatar
      Harrie Kohler
      Copper Contributor

      Hi all,

       

      I have exactly the same issue. I have a few Orphaned Group Sites, but in my case the set/add of an owner with the "Set-SPOSite -Identity" cmd results in "Unable to change Owner property when site is in LockState or No Access" (translated from Dutch).

       

      Does anyone has any idea how to get this solved?

      • Shivam Raj's avatar
        Shivam Raj
        Copper Contributor
        okay.. So first you will have to unlock that site. For that you need to do this : Set-SPOSite -identity siteurl -LockState "unlock"
        And then assign that account as owner, one you are going to delete it with using : Set-SPOSite -identity siteurl -Owner <account> -nowait
        Now you can do the above steps to remove that site permanently
  • Ali Salih's avatar
    Ali Salih
    Iron Contributor
    I am pretty sure I reported this 4 months ago, it may even be when we were on Yammer still not on MS Tech Community. I do not remember an update on the delete feature since then.....
    • Yeap, I remember also from time to time this issue of having orphan group sites that are not deleted...have you tried to remove it using PowerShell
      • StefanFried's avatar
        StefanFried
        Iron Contributor

        Yes. I tried to remove it via Remove-SPOSite....but it gives me '"Access Denied" although i'm Global Admin :)

         

        In my tenant i see dozens of orphaned SPO Sites :(


        I opened already a Support Ticket. Will let you know the outcome

    • StefanFried's avatar
      StefanFried
      Iron Contributor

      Yes. Around 30 hours ago i have deleted the O365Group but the SPO Site still exists.

      ..so i would say that i have waited long enough :)

       

      Yes i've checked first some of the existing community entries (like the one you have mentioned below) but all of the "workarounds" (example: /_layouts/15/deleteweb.aspx)  have not helped :(

       

      i'm just curious what others usually do in that case (spo site not deleted automatically and global admin can not delete it manually because of the missing ownership)

       

      thx

Resources