Remove Renamed Site Redirects Issue

Daniel Chee 276 Reputation points
2021-09-01T06:11:47.87+00:00

Hi MS Q&A,

Had attempted to rename a Site Collection via SPO Admin Center and encountering issues attempting to remove the respective site redirect (Site with Template ID: RedirectSite#0) via recommended process within following MS Article:
https://learn.microsoft.com/en-US/sharepoint/manage-site-redirects

Have attempted the following cmdlets and encountering the following errors despite being Site Admin and GA:

  • Remove-SPOSite : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  • Remove-PnPTenantSite : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Observed that the current Site Admin for the Redirect Site is showing up as "SHAREPOINT\system" and was unable to update the Site Administrators while attempting to determine if that might be a potential root cause.

Appreciate any advice or information.

Thank you.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} vote

Accepted answer
  1. Elsie Lu_MSFT 9,801 Reputation points
    2021-09-01T07:26:39.63+00:00

    Hi @Daniel Chee ,

    This issue can be reproduced in my test environment:
    128251-47.jpg

    You could try this solution :
    first unlock the site and then change the owner of the site using below cmdlets.

    Set-SPOSite $site -LockState Unlock  
    Set-SPOSite $site -Owner "Owner name"  
    

    Once done you will be able to delete the site.

    Remove-SPOSite -Identity "Site url"  
    

    A similar post about this issue:
    Error when using Remove-SPOSite command on PowerShell


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Daniel Chee 276 Reputation points
    2021-09-02T01:10:34.737+00:00

    Thanks Elsie,

    Confirming had been successful with removing the Site Redirect after Unlocking and adding executing account as Site Admin successfully.

    Thank you for the prompt assistance.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.