๐ ๐ซ๐๐ ๐ฎ๐ฉ ๐ฒ๐จ๐ฎ๐ซ ๐จ๐ฅ๐ ๐๐ก๐๐ซ๐๐๐จ๐ข๐ง๐ญ ๐๐๐๐ฌ ๐๐ง๐ ๐ซ๐๐ฎ๐ฌ๐ ๐ญ๐ก๐๐ฆ!
Old URLs from moved or renamed sites stick around as redirects. These ensure bookmarks and links still workโbut what if you want to reuse them for new sites? Hereโs how:
- Check for the redirect: Old URLs use a special REDIRECTSITE template.
- Delete the redirect to free the old URL: You can remove single URLs using the SharePoint Online Management Shell:
Remove-SPOSite -Identity https://contoso.sharepoint.com/sites/OldSiteName
โกBulk deletion tip: If you have multiple old URLs, use this script:
$OldUrls = @( ย ย ย "<site url>", ย ย ย "<site url>" ) foreach ($url in $OldUrls) { ย ย ย Write-Host "Deleting redirect site: $url" ย ย ย Remove-SPOSite -Identity $url -Confirm:$true }
๐ก You can also replace the list with a CSV import for larger batches.
โ ๏ธ Note: Ensure no retention policies block deletion, and clear your browser cache for instant results. After deletion, confirm by visiting the URL (should return 404) or using:
Get-SPOSite -Identity https://contoso.sharepoint.com/sites/OldSiteName
Reassign URLs to new sites without leaving old redirects behind.