SharePoint Document Issues

Fix the SharePoint Online Remove-SPOSite File Not Found Error

Emma BrownEmma Brown Nov 20, 2026 868 views

Question details

Determine why Remove-SPOSite reports File Not Found for a SharePoint Online site that Get-SPOSite still lists.

Fix the SharePoint Online Remove-SPOSite File Not Found Error
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.
Before you start

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.

Solution 1Recommended

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.

1
Connect to SharePoint Online

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.

2
Look up the deleted site

Run Get-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/example, replacing the example with the exact site URL.

3
Review the result

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.

Check whether the site is already in the deleted-sites collection
Still seeing conflicting results?: If Get-SPOSite continues to list the site but Get-SPODeletedSite does not find it, contact Microsoft support with the command output and the 404 details.
Free Microsoft Office alternative

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.

Open and edit Microsoft Office formats such as DOCX, XLSX, and PPTXWork with document files outside SharePoint site administrationUse a familiar interface for common editing tasksGet a free, lightweight office suite
microsoft office alternative - wps office

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.