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 ? :)
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
quick update:
i still have plenty of orphaned group spo sites which i can't delete as Global Admin
(Access denied message if i use Remove-SPOSite cmdlet)
MS support deleted "manually" some of my orphaned group sites...and closed the ticket (a root cause analysis is not covered with the normal support :(((
So i'm still facing the issue that if i delete a O365Group, the underlying SPO Group Site remains (as well the MS Team in case the O365 group was created via Teams).
Support told me that Remove-SPOSite should work but in fact it doesn't.
Does anyone have other ideas how i can delete orphaned Group Spo's without contacting MS Support ?
- Dean_GrossMar 29, 2017Silver ContributorGlobal admins don't have access to SPO site collections by default which may be causing this issue.
Have you tried to add an account to the Site Collection Admin group of the site and then use that account to run Remove-SPOsite?- StefanFriedMar 29, 2017Iron Contributor
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 ? :)
- AnonymousJun 14, 2018
Hi,
I'm currently experiencing many issues with SharePoint Online site collections. I have around 80 sites that been created but unused, so I want to delete them however I could not remove any of them.
I'm new to SP online and not sure what to do next to move on to next step. below are the error messages i'm getting.
When trying to update the Group Site I got this error message "The login name xxxxxx@xxxx.onmicrosoft.com was not found in the tenant."
When using "Remove-SPOSite -Identity https://<name>/sites/<sitename> -noWait" I have the following errors for different sites
1. Remove-SPOSite : This site belongs to an Office 365 group. To delete the site, you must delete the group.
(I'm afraid if I delete the O365 group, the site retained as I've tried this from the Web browser by going to Site Information -> Delete this site -> Confirm deletion of O365)
Once the group deleted, this is the error that I received.
2. Remove-SPOSite : This site collection can't be deleted because it contains sites that are included in an eDiscovery hold or retention policy.
I check all the retention policy in Admin Central, SharePoint option is not even turn on. However I do have the "Preservation Hold Library" folder appears on my site. I then use SharePoint designer to update the temHoldReleasedDate to a past date and try the Remove cmd again I got this error message.
3. Remove-SPOSite : The requested operation is not supported for site:
I already have a ticket with MS, we went through many different test but no luck.
Any suggestions would be greatly appreciated!!!