Forum Discussion
New feature: Recover deleted Office 365 Group via PowerShell
If you've deleted an Office 365 group, it's now retained by default for a period of 30 days. Within that period, you can now restore the group and its associated apps and data via a new PowerShell cmdlet. For additional information please go to https://aka.ms/groupssoftdelete.
50 Replies
- Great news! Is it planned to know how long Groups have left in the recoverable state be available via these cmdlets?
- cfiessinger
Microsoft
From the documentation:
"You can also permanently delete a soft-deleted group if you can't wait the 30 days for the retention period to expire for the content to be permanently deleted."
- Paul MillerCopper Contributor
What's the procedure for permanent deletion? the -permanent switch is designated for internal Microsoft Use only according to the documentation for the Remove-UnifiedGroup command. And attempting to use it in Azure PowerShell results in the following error:
A parameter cannot be found that matches parameter name 'Permanent'.
+ CategoryInfo : InvalidArgument: (:) [Remove-UnifiedGroup], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Remove-UnifiedGroup
+ PSComputerName : ps.outlook.com
- John GrahamBrass ContributorExcellent! ty.
- Jessie_HernandezBrass ContributorThank you!!!!! When restoring a group will any data (Sharepoint Document Libraries) associated with the group be restored as well?
- cfiessinger
Microsoft
it does as mentioned in the document referred above:
"Group content that can be restored includes: (...) SharePoint Online team site and files"
- Brent EllisSilver Contributor
woot!
Is there a way for admins to know if/when an Office 365 Group is deleted?
- Sara Cortez
Microsoft
I found this very useful to check all groups https://gallery.technet.microsoft.com/office/Office-365-Groups-Report-7e3e161b
- Paul CunninghamIron Contributor
Brent Cordis try this script
https://practical365.com/collaboration/groups/powershell-script-generate-reports-groups-office-365/We'll be updating it to flag whether deleted groups are still recoverable as well, now that the new feature is available.
cc cfiessinger - Paul van LingenCopper ContributorFinally, thanks for the update!
- Awesome stuff!!!