Forum Discussion
Restore/Recover Deleted Team
- Aug 27, 2021
kevinmcbeth It doesn't matter who created the team, it's always backed by a Microsoft 365 Group. If they cannot find the group in the 'recycle bin', then unfortunately it appears the group was probably 'hard deleted' already. Have a look here to see if you can still find it. Theoretically you should also be able to restore Microsoft 365 Groups you owned.
Some resources linked to a group might be recoverable for a longer period of time. Your administrator will have to look for those resources in various places though. The associated SharePoint site may still be available in the SharePoint recycle bin etc.
Your IT can always recover deleted teams by restoring the Microsoft 365 Groups that backs them, here's a Powershell code i wrote that gets the job done:
Get-AzureADMSDeletedGroup -Top 10000| Export-Csv -Path "E:\DeletedTeams.csv" -Encoding UTF8
$DG_list = Import-Csv E:\DeletedGID.csv
foreach ($DGmember in $DG_list) {
Restore-AzureADMSDeletedDirectoryObject –Id $DGmember.GroupID
}
*The first line will export the recent 10000 deleted office 365 groups. You can always change this number.
*The rest of the code will iterate over items in another csv file named DeletedGID.csv that has one column with the deleted groups ID (GroupID)