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 ? :)
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?
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 ? :)
- DeletedJun 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!!!
- Dean_GrossJun 14, 2018Silver ContributorI would recommend asking these questions in a new conversation thread so that you get the most attention.
In regards to question 1, When you delete an Office Group, it will delete the associated objects, such as SPO sites, that is the correct method to ensure everything gets properly removed.- Julio LimaApr 26, 2019Copper Contributor
Just went to the same issue. You need to delete the Office 365 groups in two places. If you delete online in the Admin Center->Groups, you still need to go inside Portal Azure and permanent delete the Groups there. Portal Azure ->Azure Active Directory -> Groups -> Deleted Groups -> Send them to SPACE :)
You give a day or two and the sites will be deleted. :)
This whole issue has nothing to do with ediscovery policies.. crazy!
- Dean_GrossMar 29, 2017Silver ContributorYes, that is what I meant.
I remember having this type of problem when O365 groups were first available and I had to call MS Support but I have not looked for this in any of my current customers.