Unable to delete SharePoint Online site

Anonymous
2018-08-02T14:25:45+00:00

Hi, 

I have exactly the same issue as :

https://answers.microsoft.com/en-us/msoffice/forum/msoffice\_sharepoint-mso\_win10-mso\_o365b/unable-to-delete-sharepoint-online-site/b71ae7bc-64ee-451f-ab55-861a3a8dd280 

&

https://answers.microsoft.com/en-us/msoffice/forum/msoffice\_sharepoint-mso\_windows8-mso\_o365b/unable-to-delete-sharepoint-online-site/f2c62185-a7fc-4b13-932b-7e2a577de195

I cannot delete a sharepoint online site from a Site collection using : Remove-SPOSite

Remove-SPOSite : Fichier introuvable. (file not found)

At line:1 char:46

  • Get-SPOSite -filter {Url -like "(myUrlFilter)"} | Remove-SPOSite

+                                              ~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Remove-SPOSite], ServerException

    + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.Remov

   eSite

I've succeed to remove other site from this site collection but not this one.

When I go on my site url I've got : 404 FILE NOT FOUND

and when I Get-SPOSite -filter {Url -like "myUrlFilter"} my site is in the list with my Admin as owner.

Any advise or help would be greatly appreciated.

Thanks.

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Anonymous
    2018-08-03T02:02:17+00:00

    Hi François,

    To investigate the issue, we would like to confirm the following information:

    1. Are you trying to delete a classic SharePoint site or Office 365 group site?
    2. Did you try deleting the site from browser? For detail information, please see Delete a SharePoint site or subsite.
    3. If there’s another owner of the site, please check with him/her if they can delete the site from browser or using PowerShell command.
    4. When you try to access the site from browser, you get 404 FILE NOT FOUND error. Correct? Could you please provide the complete screenshot?

    Thanks,

    Neha

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-08-03T09:36:40+00:00

    Hi Neha, 

    1. I'm trying to delete a communication Sharepoint site.
    2. I' m trying to delete the site with windows Powershell command. (and I tried from my browser too).
    3. There is two Admins for this tenant. 
    4. ![](https://learn-attachment.microsoft.com/api/attachments/2a868f84-802a-4c26-840c-03c25a94507c?platform=QnA"https://learn-attachment.microsoft.com/api/attachments/89054b6e-861d-44d1-9f8a-a5899ee5b68b?platform=QnA" rel="ugc nofollow">

      I've got this issue with 3 other site, but other site from the same collection are working great. 

      Thanks for your answer, 

      François

    0 comments No comments
  3. Anonymous
    2018-08-04T09:48:25+00:00

    Hi François,

    If you receive the error 404 FILE NOT FOUND when visiting the site in browser, that means the site is already deleted. The site you are trying to delete is already deleted and that why you are getting the error Fichier introuvable (File not found) in PowerShell.

    Here’s an example

    Using Windows PowerShell, I deleted a communication site. The name of the site is simply Communication Site and it was successfully deleted.

    Few minutes later, I again followed the same steps to delete the same site and I received the same error which you mentioned in your post.

    This is the error I receive in browser.

    To verify if the site is deleted successfully, try Get-SPODeletedSite cmdlet in PowerShell.

    Let me know the status.

    Thanks,

    Neha

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2018-08-06T09:46:10+00:00

    Hi Neha, 

    I understand why I cannot delete a site that is already deleted but my issue is that when I try to delete it I got the error, but the site is still in the  list of my site :

    When I do a GetSPO-DeletedSite I get : 

    And When I try to do a provisioning of my site it does not work and I get this error : 

    Thanks for your help.

    François

    0 comments No comments
  5. Anonymous
    2018-08-07T09:28:01+00:00

    Hi François,

    I would further like to collect some logs and your tenant information to investigate the issue. For detail steps on how to collect logs, I’ll send a private message. To access your PM, please click here.

    Thanks,

    Neha

    0 comments No comments