Forum Discussion
Delete team site permanently via PowerShell
Have you tried running Get-AzureADMSDeletedGroup to see if the Group is still present after the hard delete?
Office Groups are retained for 30 days after a delete normally. Using the command above will give you a list of Office Groups marked for delete.
Use Remove-AzureADMSDeletedDirectoryObject to remove the group completely.
Hi SteveKnutson
Remove-PnPDeletedMicrosoft365Group is doing the same job.
To make sure the group deletion is running successfully, I created a new group and deleted it with Remove-PnPDeletedMicrosoft365Group. Afterwards neither Get-AzureADMSDeletedGroup nor Get-AzureADMSGroup show the group.
- kbeeveer46Jan 22, 2023Copper Contributor
SYN_Dominik Did you ever figure this out? I am running into the same issue. Removing the teams site always says there's a group associated but I've already deleted the group and deleted it from the recycle bin.
- SYN_DominikJan 23, 2023Brass Contributor
Hi kbeeveer46
unfortunately no update from my side.