Not a member yet? Register now and get started.

lock and key

Sign in to your account.

Account Login

Forgot your password?

SOLVED: How To Delete A SharePoint Online Site Using PowerShell

If you have ever deleted a SharePoint site from Office 365 or other SharePoint Online provider, you know that sometimes the sit around for a whileshareopoint-online-365-powershell-force-delete-site.  If you are trying to reuse the name of a site you recently deleted, this can be a problem.  Fortunately the solution is to force the deletion of the site using PowerShell:

  1. Download PowerShell for SharePoint Online from Microsoft, then install and run it as an Administrator
  2. Set the execution policy:
    set-executionpolicy remotesigned
  3. Connect to your site:
    connect-sposervice -url https://<your-site>
  4. You can then take a look are your sites using:
    get-sposite or get-spodeletedsite
  5. Then you can forcibly remove the site using:
    Remove-spodeletedsite -identity https://<your-domain><the-site-you-need-removed> -nowait

These commands came from Jaidev S. at Microsoft Office 365 support which you can contact at 800 865 9408 in Canada and the US.

Thanks Jaidev!

Share This With Your Friends Now:

Leave a Reply