Forum Discussion
Cannot delete sharepoint after I delete a group
You can try using PowerShell to delete the site collection, here are the scripts. A SharePoint site collection created by an Office 365 group currently will not show up in the SharePoint Online admin center.
- Martin CrispMar 27, 2017Copper Contributor
that site with the powershell scripts no longer exists.
I have the same problem described above. I deleted some groups but their sites still remain. I tried to go in and delete the sistes from sharepoint admin but there is not option to delete them.
- StefanFriedMar 29, 2017Iron Contributor
Are you talking about deleting a Group SPO Site ? (a SPO Site which was created via an O365 Group)
I had (or still have) exactly the same case where a SPO Site remain available after i deleted the O365 Group.
In order to delete a SPO, you need to add an globald admin account as an owner to the site
Set-SPOSite -Identity https://<name>/sites/<sitename> -owner <your global admin account>
afterwards trigger the removal by issuing this cmdlet
Remove-SPOSite -Identity https://<name>/sites/<sitename> -NoWait
SideNote:
i had the issue that i couldn't add an owner to ANY Group SPO's. So i had to open a MS support ticket for that :(
hope that helps
- Henk LuggenhorstMar 30, 2017Copper Contributor
I also had the same problem. Deleted some Office 365 Groups, but the SharePoint sites were not deleted.
Trying to add my own global admin account as an owner using
Set-SPOSite -Identity https://<name>/sites/<sitename> -owner <your global admin account>
did not work. The site was "not cuurently available" according the Powershell error message.
Apperently the site was locked. Unlocking the site using
Set-SPOSite -Identity https://<name>/sites/<sitename> -LockState Unlock
made it possible the add the global admin account. After adding the global admin account there was no problem deleting the SharePoint site.
I hope this works for everybody.