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...
  • StefanFried's avatar
    StefanFried
    Mar 29, 2017

    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 ? :)

     

     

Resources