1

I have been asked to investigate this so I have also been running an experiment using PnP PowerShell commands:

$MyTempGroup = Get-PnPUnifiedGroup -Identity $displayName
$MyTempGroup.SiteUrl
Remove-PnPUnifiedGroup -Identity $displayName
$MytempGroup = Get-PnPUnifiedGroup -Identity $displayName
// Has it gone yet
$MyTempGroup -eq $null

The idea is can restore just the SharePoint site from the recycle bin or will I get the whole group? My theory this won't be possible because the GROUP#0 template used to create the site wouldn't be valid if the group is present. Are there any clever workarounds to restore just the site.

4
  • I have done something similar and documented it here sharepoint.stackexchange.com/questions/249092/…
    – susan
    Commented May 9, 2019 at 10:52
  • Thanks @susan ( H? 😉), . I still have site up, even after 30 hours so no need to think about recycle bins. Will need to do further experiments, such as deleting MS Teams and sites with more active users Commented May 10, 2019 at 12:04
  • 1
    at the end of the day it is possible, I have done it with the help of a microsoft engineer but i believe the powershell script can be found, just you might not like the result, there were automatic links in the site to take you to the group that gave you 'file not found', not a good end user experience
    – susan
    Commented May 10, 2019 at 13:46
  • I tried the same PS script on a Office 365 group that was created as part of MS Teams. This time both the Group and site were deleted immediately. Commented May 13, 2019 at 15:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.