Forum Discussion
Reusing a Deleted SharePoint Site Name
- Jun 06, 2018
Similarly, you can permanently remove the deleted site using Remove-SPODeletedSite cmdlet.
jfranz I have used both powershell and admin console.
In PowerShell running Get-SPOSite and Get-SPODeletedSite, both outputs do not have the site listed so there is nothing to Remove-SPODeletedSite on. I have also tried the Clear-PnPTenantRecycleBin wich came up with nothing as well.
In the Admin console the site does not show in the active or deleted sites lists.
to the best i can see the site is deleted and gone but I still get the "2" on the URL when recreating the site. is there a database that the URL is stored in and a PS command to remove it maybe? im at a loss
I also suffered this pain and this is how you fix it...
Connect-SPOService -Url "https://YOURDOMAINNAME-admin.sharepoint.com/_layouts/15/sharepoint.aspx" -credential mailto:YOURUSERNAME@YOURDOMAIN
Get-SPODeletedsite (this will return any old deleted URLs)
Remove-SPODeletedSite -Identity "COPY YOUR URL HERE"
You may need to be a Global Admin