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 ? :)
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.
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!
- NZTECHAug 01, 2019Copper Contributor
I have tried ALL these options and not one has worked. Perhaps this is a time period to take effect:
As you can see the Retention Policy no longer applied to SharePoint. Originally they were setup as Team sites that were deleted. Still lingering around as a SharePoint Site. I removed SharePoint Retention around a few hours ago.
- Julio LimaApr 26, 2019Copper Contributor
Dean_Gross Hi Dean,
It's if you facing the issue of deleting a site and you get the message you can't delete because of compliance or e-discovery. I closed a call yesterday with Microsoft Premier support, this thing got escalated there because the test and trash team sites we deleted never deleted the sharepoint.
Steps Microsoft suggest:
1. Check policies:
Get-RetentionCompliancePolicy |FL
Get-RetentionCompliancePolicy "PolicyName" -DistribuitionDetails | FL
The only policy I had was off, then deleted, the problem still persisted after waiting 7 days as said by Microsoft - it can take up to 7 days to replicate policy actions.
2. Microsoft asked to delete the Office365 in the Admin Center->Groups.
I did that only from Portal Admin, I still could not delete the site from SharePoint Active Sites. I got the error compliance policy blocking you from doing that.
3. Microsoft asked delete via Powershell. Remove-SPOSite –identity URL.
Tried that I got the error saying cant delete because of ediscovery policy
4. Microsoft did a team meeting, ask to go thru the steps, and the guru said, go to Azure AD -> Groups->Deleted Group -> Purge them.
That worked really well, this was yesterday... I permanently deleted the Office Groups all the sites deleted automatically. Went to Active Sites in SharePoint Admin, all clean.
Regards,
- Dean_GrossApr 26, 2019Silver Contributor
Julio Limathat is not correct. You do not need to do that in the Azure AD portal, the system will do it for you.