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 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 KohlerNov 15, 2017Copper 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 RajNov 16, 2017Copper Contributorokay.. 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- Harrie KohlerNov 16, 2017Copper Contributor
Hi Shivam,
Thanks a lot, this worked perfect for me.