Forum Discussion
How to delete Group SPO site if O365Group was deleted?
- 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 ? :)
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?
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
- Harrie KohlerNov 16, 2017Copper Contributor
Hi Shivam,
Thanks a lot, this worked perfect for me.
- StefanFriedNov 17, 2017Iron Contributor
it is great to have workarounds , but it is unbelievable that this issue (SPO teamsites are not deleted whenever O365 groups are deleted) still exists after months.