Deleted Site Cannot Be Restored From Admin Center: Root Cause and Fix
🔍 WiseChecker

Deleted Site Cannot Be Restored From Admin Center: Root Cause and Fix

When you delete a SharePoint site, it goes into the site collection recycle bin in the SharePoint admin center. Many administrators expect to restore any deleted site from this recycle bin. However, sometimes the restore button is grayed out or missing entirely. This happens because SharePoint enforces a retention policy or a site lock that prevents restoration through the standard admin interface. This article explains the root cause of this restore failure and provides the exact steps to fix it using PowerShell and the SharePoint admin center.

Key Takeaways: Restoring a Deleted SharePoint Site

  • SharePoint admin center > Active sites > Recycle bin: Shows deleted sites but may block restore if a retention lock is active.
  • SharePoint Online Management Shell: Required to remove a site lock or bypass a retention policy hold.
  • Set-SPOSiteLockState cmdlet: Removes the lock that prevents the site from being restored via the admin center.

ADVERTISEMENT

Why the Restore Button Is Unavailable for a Deleted Site

When a SharePoint site is deleted, it moves to the site collection recycle bin in the SharePoint admin center. The admin center shows these sites with a restore option. If the restore button is grayed out or missing, one of three conditions is true.

The first condition is that a retention policy from Microsoft 365 Compliance Center has placed a hold on the site. This hold prevents permanent deletion and also blocks restoration via the standard admin center. The second condition is that the site has a site lock applied through PowerShell, often set by an administrator during a migration or security remediation. The third condition is that the site was deleted more than 93 days ago. SharePoint sites are permanently deleted after 93 days in the recycle bin. After that point, they cannot be restored at all.

The root cause for most cases is a retention hold or a site lock. The admin center does not show any error message explaining why the restore is blocked. You must use PowerShell to check the lock status and remove it.

Steps to Restore a Deleted Site That Cannot Be Restored From Admin Center

Follow these steps to identify the lock, remove it, and restore the site.

  1. Open SharePoint Online Management Shell
    Install the SharePoint Online Management Shell if you have not done so already. Open Windows PowerShell as an administrator and run the command Install-Module -Name Microsoft.Online.SharePoint.PowerShell. After installation, run Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com and sign in with a SharePoint admin account.
  2. Get the deleted site URL from the recycle bin
    In the SharePoint admin center, go to Sites > Active sites. Click the Recycle bin tab at the top of the page. Find the deleted site and copy its full URL. The URL will look like https://[yourtenant].sharepoint.com/sites/[sitename].
  3. Check the site lock status
    In the SharePoint Online Management Shell, run the following command: Get-SPOSite -Identity "[site URL]" | fl LockState. Replace [site URL] with the URL you copied. The output shows the current lock state. If it says NoAccess, the site is locked and cannot be restored through the admin center.
  4. Remove the site lock
    Run the command Set-SPOSiteLockState -Identity "[site URL]" -LockState Unlock. This removes the lock. If the command fails with an error about a retention hold, proceed to step 5.
  5. Remove the retention hold from the site
    If the lock removal fails, a retention policy is holding the site. Go to the Microsoft 365 Compliance Center at https://compliance.microsoft.com. Select Information governance > Retention. Find the policy that applies to the site. Edit the policy and remove the site from the policy scope. Wait up to 24 hours for the hold to release. Then run the Set-SPOSiteLockState command again.
  6. Restore the site from the admin center
    Return to the SharePoint admin center. Go to Sites > Active sites > Recycle bin. Select the deleted site and click Restore. The site will be restored to its original URL.

ADVERTISEMENT

If SharePoint Still Has Issues After the Main Fix

The restore button is still grayed out after removing the lock

If the restore button remains grayed out after you removed the lock, the site may be in a secondary recycle bin. SharePoint has two recycle bins: the first-stage recycle bin and the second-stage recycle bin. The admin center recycle bin shows sites from both stages, but the restore action only works for sites in the first-stage bin. Use the SharePoint Online Management Shell to check the recycle bin stage. Run Get-SPODeletedSite -IncludeOnlyPersonalSite:$false | Where-Object {$_.Url -eq "[site URL]"}. If the output shows DaysRemaining with a number greater than 0, the site is in the first-stage bin. If DaysRemaining is blank or the site does not appear, it is in the second-stage bin. Second-stage bin items cannot be restored through the admin center. You must use the Restore-SPODeletedSite cmdlet: Restore-SPODeletedSite -Identity "[site URL]".

The site was deleted more than 93 days ago

SharePoint permanently deletes sites after 93 days in the recycle bin. If the site was deleted more than 93 days ago, it cannot be restored. Microsoft does not provide a way to recover sites after this period. You must restore the site from a backup if you have one. If you do not have a backup, the site is lost permanently. To prevent this in the future, enable the SharePoint site retention policy in the Microsoft 365 Compliance Center to keep sites for a longer period.

The site URL is already in use

If another site was created with the same URL after the original site was deleted, the restore will fail. You must delete the new site first, or restore the original site to a different URL. The admin center restore function does not allow you to change the URL. You must use PowerShell. Run Restore-SPODeletedSite -Identity "[original site URL]" -NewUrl "[new URL]". Replace [new URL] with an unused URL path, for example https://[yourtenant].sharepoint.com/sites/old-site-restored.

Admin Center Recycle Bin vs PowerShell Restore: Key Differences

Item SharePoint Admin Center Recycle Bin SharePoint Online Management Shell
Restore method Click the Restore button in the UI Run the Restore-SPODeletedSite cmdlet
Supports locked sites No, lock must be removed first No, lock must be removed first
Supports retention holds No, hold must be removed first No, hold must be removed first
Allows custom URL on restore No, restores to original URL only Yes, with the -NewUrl parameter
Works for second-stage recycle bin No Yes
Shows error message for blocked restore No, button is grayed out Yes, PowerShell returns an error

You now know why a deleted site cannot be restored from the SharePoint admin center. The root cause is usually a site lock or a retention hold. Use the SharePoint Online Management Shell to check the lock state with Get-SPOSite and remove it with Set-SPOSiteLockState. If a retention hold blocks the unlock, remove the site from the retention policy in the Compliance Center. After the lock is removed, restore the site from the admin center recycle bin or use the Restore-SPODeletedSite cmdlet for more control. As an advanced tip, run a weekly PowerShell script that exports all deleted sites and their lock states to a CSV file so you can identify restore issues before they become urgent.

ADVERTISEMENT