You'll want to look at the powershell command Remove-SPODeletedSite
Delete the sharepoint site and its data
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
2 answers
Sort by: Most helpful
-
-
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.
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.