unable to delete a SP modern team site "The site can't be deleted becuase it's connected to office."

Valued Contributor

i have created a new sharepoint modern team site using the office 365 admin, then i wanted to remove the site collection and create a brand new one. So from Office 365 >> Groups >> i remove the related office 365 group. then i went to office 365 >> SharePoint >> i remove the related sharepoint site. this moved the site to the recycle bin. but when i selected the deleted sharepoint site  >> the "Permanently delete" button was disabled, and i got this message "The site can't be permanently deleted because it's connected to an Office 365 group.." as follow:-deleted.png

 

and idea what is going on?

9 Replies
Hi

See article here:

https://techcommunity.microsoft.com/t5/Office-365-Groups/Force-delete-Group-Site-Collection-after-Gr...

There is a workaround identified in here to delete the site. However this doesn’t seem to work for everyone. General consensus seems to be if it doesn’t work for you then to raise a ticket to support on this one.

Hope that answers your question. I’ll look into it further if you can’t do it per the article.

Best, Chris

@Christopher Hoard 


@Christopher Hoard wrote:
Hi @John John

Long standing issue - deleting an Office 365 Group before deleting the Site Collection

See article here:

https://techcommunity.microsoft.com/t5/Office-365-Groups/Force-delete-Group-Site-Collection-after-Gr...

There is a workaround identified in here to delete the site. However this doesn’t seem to work for everyone. General consensus seems to be if it doesn’t work for you then to raise a ticket to support on this one.

Hope that answers your question

Best, Chris

I restored the deleted sharepoint site and the deleted Office 365 group. then i removed the Office 365 group >> but the SP site still showed inside the active sites list, and i got a message that this site does not have Office 365 group and if i want to delete it,, so i remove the SP site and i got the same message when i tried to remove it permanent from recycle bin ... seems deleting an Office 365 Group before deleting the Site Collection will not work also..

Hi

Got it. See article

https://docs.microsoft.com/en-us/sharepoint/delete-site-collection

You need Powershell to finish this off.

Hope that answers your question.

Best, Chris

 


@Christopher Hoard wrote:
Hi

Got it. See article

https://docs.microsoft.com/en-us/sharepoint/delete-site-collection

You need Powershell to finish this off.

Hope that answers your question.

Best, Chris

@Christopher Hoard  seems this does not want to work :), here what i did exactly:-

 

1. using Office 365 admin center >> I removed the office 365 named  OurCompanyTest.

2. Then using Office 365 admin center  >> i removed the sharepoint site which have this url /sites/OurCompanyTest/

3.  Then using this power-shell command Remove-SPODeletedSite -Identity i removed the deleted SP site.

4. then i went back to SP central admin >> create new team site >> I enter the name of the site to be the same as the deleted site OurCompanyTest >> but the url for the new site got "2" at the end of it as follow /sites/ OurCompanyTest2/.. and this is not what i want to have !! any idea?

Hmm, we are having a good bit of fun with this one.

A good article is right here - see scenario 2

https://www.morgantechspace.com/2018/07/how-to-reuse-deleted-sharepoint-site-url.html?m=1

You would need to run Powershell Command with the SharePoint module

Remove-SPODeletedSite -Identity https://domain.sharepoint.com/sites/OurCompanyTest

After that run the following to make sure it’s deleted

Get-SPODeletedSite

Let me know how it goes

Best, Chris
Hi @John John,

Did the above post resolve this?

Best, Chris

Hi everyone with the same problem.

I haven't read every link and solution so maybe my way to solve this issue was suggested and / or failed already.
But here is what helped me:
1. deleted site via share point admin center
2. because i wasn't able to permanently delete that site under "deleted sites" i deleted the office Group permanently via azure admin center
3. still, it wasn't possible to delete site permanently so i restored it. Got message that the office group couldn't be found so it will restore without group. Yes, fine
4. Finally, just as it emerged I deleted it again

5. now it was possible to delete it permanently.

 

Hope this will help people who still have this issue.

@Gordon_nomatter Your solution worked for me, thank you.