How to delete a PWA and empty the recycle bin via Powershell

Hi everyone!!!

Today I will talk about SharePoint Online Management Shell and show you how to use SharePoint Online Management Shell to clean up the Recycle Bin.

Let’s explain the scenario: You’ve created two Project Online environments (/PWA and /Projects) but now you decided to use only one.

  1. You need to remove 1 Project Online instance and there is a correct way to do this.
  2. You’d like to clean up the Recycle Bin. When you do this you can re-use the same name again without waiting 30 days.

So, let’s start it:

To execute the step 1:

  • You will need to connect to the SharePoint Admin Center.
  • Select the instance that you decided to delete and
  • Remove the Project Web App.


After this:

  • Delete the Site Collection



Now if you click on Recycle Bin on the Ribbon, you will see the site excluded.


OK, you deleted correctly the instance, but now you decided to re-use the same name or just clean up your Recycle Bin.

  1. Download the SharePoint Online Management Shell (here).
  2. Open it (run as Administrator).
  3. Use the command Connect-SPOService and insert the SharePoint Admin Center URL. (You will need to enter login and password).
  4. Use the command Get-SPODeletedSite to see all sites that have been deleted.
  5. Use the command Remove-SPODeletedSite to remove the site collection.




Now if you check the Recycle Bin again, there is no more “…/Sites/Projects”.


SharePoint Online Management Shell is a powerful tool. To see what else you can do using this tool, click here Introduction to the SharePoint Online Management Shell.

Enjoy it…

See you guys!!!

#ProActive  #JoinUs

Diego Pereira

  1 comment for “How to delete a PWA and empty the recycle bin via Powershell

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog do Douglas Romão

MVP Office Apps and Services | Modern Workplace and Business Applications Expert

Blog do Project

Tudo que você queria saber sobre Microsoft Project


by Allan Rocha

Modern Work Management - Project and the Power Platform blog

Microsoft Project, Project Online, Project for the Web and the Power Platform

%d bloggers like this: