How to Restore the Correct Deleted OneDrive Site with the Same URL
Question details
The user needs to recover a specific deleted OneDrive site when there are two deleted sites in the system that share the exact same URL.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to restore an older deleted OneDrive site when a newer personal site was previously provisioned and deleted with the identical URL.
- Observed behavior
- Restoring the site by URL alone causes a conflict and may restore the newer, incorrect site instead of the older target site.
Ensure you have SharePoint or Global Admin privileges in Microsoft 365, and always back up any critical files from the newer OneDrive site before attempting a recovery to prevent data loss.
Use SharePoint Online PowerShell to Restore by Site ID
Filtering by both the site URL and the unique Site ID ensures you restore the exact older site instead of the newer one.
When two sites share a URL, standard recovery commands default to the most recent entry. By combining the URL and the specific Site ID in your PowerShell command, you force the system to locate and restore the exact instance you need.
Launch SharePoint Online PowerShell on your computer as an administrator and connect to your Microsoft 365 admin center using your admin credentials.
Type the following command: Get-SPODeletedSite -IncludePersonalSite | Where-Object { $_.Url -eq 'SiteURL' -and $_.SiteId -eq 'SiteID' } | Restore-SPODeletedSite
Before pressing Enter, carefully replace 'SiteURL' and 'SiteID' in the command string with the actual URL and specific Site ID of the older deleted site you wish to restore.

Contact Microsoft Support for Conflict Resolution
If you cannot use PowerShell or the URL conflict strictly prevents self-service restoration, opening a support ticket is required.
Manage Recovered Documents Easily with WPS Office
While resolving OneDrive administration and backend conflicts requires Microsoft 365 tools, you still need a reliable office suite to manage and edit your recovered files. WPS Office is a highly compatible, free, and lightweight alternative to Microsoft Office, perfect for seamlessly handling your cloud documents.
- 1. Download the installer: Visit the official WPS Office website and download the free setup file for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the on-screen instructions to complete the quick setup.
- 3. Open your recovered files: Launch WPS Office and directly open the documents you just recovered from your OneDrive site.

Frequently Asked Questions
Why would two deleted OneDrive sites have the exact same URL?
When a user account is deleted and later re-created or returns with the same User Principal Name (UPN), OneDrive may provision a new personal site using the identical URL. If this new site is subsequently deleted, both the old and new sites will exist in the recycle bin sharing the same URL.
How can I find the Site ID of my deleted OneDrive site?
You can find the Site ID by running the 'Get-SPODeletedSite -IncludePersonalSite' command in SharePoint Online PowerShell. This will list all deleted sites along with their properties, allowing you to identify the correct Site ID based on the original creation or deletion dates.
Can I just delete the newer OneDrive site by URL to fix the conflict?
You should avoid deleting or hard-purging sites by URL without specific instructions from Microsoft Support. Running a hard deletion by URL when duplicate URLs exist can permanently and irreversibly remove the wrong site.
Do I need administrator privileges to run the PowerShell restore command?
Yes, you must be assigned a SharePoint Administrator or Global Administrator role within your Microsoft 365 tenant to connect to SharePoint Online PowerShell and execute commands to restore deleted OneDrive sites.




