Forum Discussion
Force delete Group Site Collection after Group Deleted?
My issue is different I suspect. I can delete the group out of Office365 Admin section. That also causes it to delete in Azure Active Directory. The issue I've been experiencing is that the Sharepoint site never gets deleted and can't be via the portal or powershell. It complains about compliance policy (when none exist).
And this "policy" gets applied to even newly created sites. I've disabled and deleted all retention policies. Tried to exclude sites from retention policies. Made sure there were no eDiscovery cases. And a bunch of other things. Nothing works. Microsoft can delete them for me, but that's not a solution.
- Julio LimaApr 29, 2019Copper Contributor
Jason Gould I know is frustrating, trying to help here. I was also going crazy as well. These admin centers are now a maze to go thru, and they keep evolving. hope you find the answer soon.
I am sure will be a non-sense PowerShell that will solve the issue.
Regards,
Julio
- Jason GouldApr 29, 2019Brass Contributor
Here is an example. This sharepoint site won't delete. At one time it was associated with a O365 Group (if I remember correctly). The Group was deleted and is GONE, but the sharepoint site remains and CAN'T BE DELETED!
Here is the sharepoint site. Details of site even state it is no longer associated with a Group;
Here are the errors trying to delete;
Here you can see Admin Portal Groups;
Here you can see there is no longer a Group for it in Azure AD;
- Jason GouldApr 29, 2019Brass Contributor
Julio Lima I'm telling you, that doesn't work in my situation. I checked Azure AD months ago when I had the issue. Deleted the Group from the portal. Waiting 30 days. The group was completely purged and couldn't be "recovered" anymore. It was gone in ALL portals. The sharepoint site that was associated with that Group still remained with the warning I posted above. Deleting fails.
Furthermore, I have a 2nd tenant for a subsidiary company that must remain separate for legal purposes. This behavior doesn't happen there. In that environment if I enable the retention policy I get the message I posted above and you can't delete the site. Exclude the sharepoint site from the retention policy or disable the policy and the message goes away and you can delete it no problem.
I've talked to 4-5 different people at Microsoft support. Multiple escalations. I've run multiple powershell commands. I've tried disabling, enabling, excluding, etc everything they've asked me to. I've tried waiting months. They don't know how to fix the problem and nothing posted here or anywhere else online has worked.
- Jason GouldApr 29, 2019Brass Contributor
jprimmer Yep, certain sites have a preservation hold library. I know this is how they keep revision history and deleted content on sharepoint sites that have a retention policy, but like you said I've tried disabling and deleting all policies.
I'm 99% positive the policy was never actually disabled when it was deleted and now this old policy continues to be applied to all content with no ability to alter it. It's essentially a ghost policy.
- Julio LimaApr 29, 2019Copper Contributor
jprimmer Guys, I had the same problem, the issue is that the error message leads you t another path. try to go to the Azure AD -> Groups-> and Delete the group from there, if it was deleted, delete from the Deleted Groups as well (purge them).
Also, delete from the Portal Office->Admin-> Groups (if it's there - should not). Give 48 hours, the site will be automatically deleted. I was getting precisely the same policy message, and I had no more policy enabled . I actually deleted all policies and gave it 7 days as requested by Microsoft and still nothing, same error... then I spoke with a Premier Support guy, he told me about this Office Groups issue, which I thought it had nothing to do and I would be wasting my time, but it did the work. After I removed the Office Groups for my SP and Teams sites, Voila!!! sites deleted automatically.
- jprimmerApr 26, 2019Copper Contributor
Dude. This is EXACTLY the issue I'm having. Migrated a new client to SharePoint, put in their requested 7 year retention policies but even after deleting them it seems the policies are still in place. Powershell, admin center, azure ad, freaking Microsoft support: nothing. You know you're desperate when you go more than a few levels deep in a Google search and I'm way past that at this point. Do your sites still have a Preservation Hold Library in the Site Contents section even though there are no visible holds? And I agree, Microsoft support being able to delete the sites is not a solution.