How To Reuse A Deleted SharePoint URL




If you've tried deleting a SharePoint site and then recreating it, you will know that the URL of your deleted SharePoint site can't be used as it's placed a SharePoint recycle bin, any deleted site will remain in the recycle bin for up to 93 days.

While there's no way to delete the site from the recycle bin through Office 365 or SharePoint admin, you can however delete this SharePoint site permanently through PowerShell.

Deleting a SharePoint site from the recycle bin


  1. The first step to get started is to download and install the Microsoft SharePoint Online Management Shell from https://www.microsoft.com/en-us/download/details.aspx?id=35588
  2. With the Microsoft SharePoint Online Management Shell installed open the Management Shell from the start menu.
  3. Type in the command  Connect-SPOService -url https://<your tenant name>-admin.sharepoint.com
  4. Authenticate with you Office 365 tenant admin account.
  5. Once authenticated you may now run commands in the SharePoint Management Shell
  6. Type the command Get-SPODeletedSite to see a list of all deleted sites in the recycle bin
  7. To remove a site permanently use the commnd: Remove-SPODeletedSite -Identity [URL]
  8. For full documentation on this command visit https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/remove-spodeletedsite?view=sharepoint-ps
  9. Once you have executed the command in step 7 you should now be able to recreate the SharePoint site with the same URL you had before.

Additional tips for managing your SharePoint sites with PowerShell

Once you have installed the SharePoint Management Shell onto your system you can import the module into PowerShell to run commands directly through the PowerShell console using the following command.

Import-Module Microsoft.Online.SharePoint.PowerShell

To see a complete listing of all of the SharePoint commands available through the management Shell use the following command.

Get-Help SPO 




Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

Was this helpful?

Yes No


Comments