In my last blog I have described how to permanently delete a site collection in SharePoint online.

Now what, if we want to recover the deleted site? There is one cmdlets Restore-SPODeletedSite available to restore the deleted site collection. Please find the following self-described PowerShell script to restore a deleted site collection from recycle bin in SharePoint online.

Script:

Restore-SPODeletedSite cmdlets accept a -NoWait parameter which you can provide to tell the cmdlet to return immediately.

Hope this post will help you. Thank you.