Fix the SharePoint Online Remove-SPOSite File Not Found Error
Question details
Determine why Remove-SPOSite reports File Not Found for a SharePoint Online site that Get-SPOSite still lists.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- An administrator is trying to remove a SharePoint Online site with PowerShell.
- Observed behavior
- Remove-SPOSite returns a File Not Found error, the site URL returns a 404 response, and Get-SPOSite still lists the site.
Have the exact site URL and your tenant's SharePoint admin center URL ready. Use an account with SharePoint administrator permissions and the SharePoint Online Management Shell.
Check whether the site is already in the deleted-sites collection
Use Get-SPODeletedSite to verify whether the site has already been deleted instead of retrying Remove-SPOSite.
A browser 404 can indicate that the site is no longer active, but it does not by itself confirm that the site is in the deleted-sites collection.
Open the SharePoint Online Management Shell and run Connect-SPOService -Url https://contoso-admin.sharepoint.com, replacing the URL with your tenant's SharePoint admin center URL. Sign in when prompted.
Run Get-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/example, replacing the example with the exact site URL.
If the command returns the site, it is already in the deleted-sites collection, so you do not need to run Remove-SPOSite again to delete the active site. If it does not return the site, verify the URL and tenant connection before investigating further.

Edit Office documents with WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Office format support helps you move existing files into your workflow. It does not administer SharePoint sites or resolve Remove-SPOSite errors.

Frequently Asked Questions
Does a SharePoint site 404 mean the site is deleted?
A 404 can indicate that the site is no longer active, but it is not conclusive. Connect with Connect-SPOService and use Get-SPODeletedSite -Identity followed by the site URL to check the deleted-sites collection.
What should I do if Get-SPODeletedSite finds the site?
The site is already in the deleted-sites collection, so you do not need to run Remove-SPOSite again to delete it from active sites. If you need it back, review the restoration options before taking further action.
Why might Get-SPODeletedSite not find my site?
The site may not be in the deleted-sites collection, or the URL or tenant connection may be incorrect. Check the exact site URL and reconnect using your tenant's SharePoint admin center URL with Connect-SPOService.
Can WPS Office fix the Remove-SPOSite error?
No. Remove-SPOSite is a SharePoint Online administration command. Use the SharePoint Online Management Shell to investigate the site; WPS Office can be used separately to edit Office-format files.




