Link to home
Start Free TrialLog in
Avatar of Timothy "Malachi" Kern
Timothy "Malachi" Kern

asked on

How do I permanently delete a Site Collection from SharePoint Online

I am trying to permanently delete a SharePoint online Site Collection and unable to do so using Powershell.  I keep getting a message that displays "Remove-SPODeletedSite : Unable to find the deleted site: https://XXX.sharepoint.com/sites/Site_1.

The command that I'm using is:
Remove-SPODeletedSite -Identity https://XXX.sharepoint.com/sites/Site_1

When I try to find the deleted sites using command Get-SPODeletedSite nothing displays.  I can see the site collection in the recycle bin.

Not sure what I'm doing wrong, any suggestions?

I've already tried the suggestions listed here:  https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/remove-spodeletedsite?view=sharepoint-ps
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

I've never found using the *-SPODEletedSite reliable, in many cases PowerShell doesnt even recognize the site as deleted and will happily return it via the regular Get-SPOSite cmdlet. Why dont you simply use the UI isntead? And by that I mean the old UI, the new one pretty much has the same issues as PowerShell...
Avatar of Timothy "Malachi" Kern
Timothy "Malachi" Kern

ASKER

@Vasil, thanks for your feedback, my first attempt was through UI and it only places the deleted site in the recycle bin, and keeps it there for 30 days, I need to permanently delete the site collection so that I can use the URL immediately.
ASKER CERTIFIED SOLUTION
Avatar of Timothy "Malachi" Kern
Timothy "Malachi" Kern

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial