Delete the sharepoint site and its data

Anonymous
2025-03-21T14:22:41.5266667+00:00

Hello

Please i need your help on this issue.

I would like to Delete the SharePoint site and its data.

Is it possible to delete any SharePoint site and its data without storing it in the Deleted folder or any other folder like Second Stage (Site Collection) Recycle Bin.

I want to delete the data permanently with immediate effect from the SharePoint site.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,576 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Richard Ruth 20 Reputation points
    2025-03-21T16:37:57.3733333+00:00

    You'll want to look at the powershell command Remove-SPODeletedSite

    0 comments No comments

  2. RaytheonXie_MSFT 40,446 Reputation points Microsoft External Staff
    2025-03-24T02:22:34.4833333+00:00

    Hi @James James,

    If it is a modern site (Communication sites and Non-group associated Team Sites) you should be able to use the _api/SPSiteManager endpoint in a Send an HTTP request to SharePoint action.

    Delete a modern site

    url: /_api/SPSiteManager/delete
    method: POST
    accept: application/json;odata.metadata=none
    odata-version: 4.0
    body:
    {
      "siteId":"d11e59ca-1465-424c-be90-c847ba849af5"
    }
    
    
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.