I'm trying to rename an SPSite to a URL that had been previously deleted.
So I go like this (note - urls redacted)
$site = get-spsite <mysecondurl>
$site.rename('myfirsturl')
However, when I run this, I'm getting this error.
Exception calling "Rename" with "1" argument(s): "Could not rename this site collection. The URL specified is already in use."
I've gone to Get-SPSite
, and the URL I want to rename to is not there.
I've gone to Get-SPDeletedSite
and it was there so I removed the site using Get-SPRemovedSite
.
However, I'm still getting the same error.
Where else should I check to ensure this URL is not being used?