If you have created teams or channels in Microsoft Teams, you likely know this creates Office 365 groups. Many other Microsoft products in the 365/Azure space create Office 365 groups. This is Microsoft’s new group which allows great flexibility across services.
However, if you have ever decided to delete a Sharepoint site or Microsoft Team, you will find you cannot create another team or site in its place. You will receive an error saying this group still exists.
This is because the group was delete as a ‘soft delete’. Meaning it’s sitting in a recycle bin for a number of days until it’s permanently deleted.
You can speed up this process. The easiest way to do this is to connect via Powershell and run the following commands
- Launch Powershell
- Run the following command if you don’t have AzureAD installed
Install-Module -Name AzureAD
- Connect to AzureAD
- Remove deleted groups
Get-AzureADMSDeletedGroup | Remove-AzureADMSDeletedDirectoryObject
If you don’t feel safe running the above command, just run the Get-AzureADMSDeletedGroup first to see what will be removed.
This will take some time to sync.