Forum Discussion
Hermann Oyourou
Apr 04, 2018Copper Contributor
permanently deletes a sharepoint site
how to permanently delete a SharePoint site
Apr 04, 2018
You have to delete the site from the recycle bin
- Hermann OyourouApr 04, 2018Copper Contributor
thanck you .
- Hermann OyourouApr 04, 2018Copper Contributor
Thank you
- DeletedApr 05, 2018
the only way to do that is by using Powershell
#Permanently Delete a SharePoint Site Collection. Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking $tenant ="https://tenantdomain-admin.sharepoint.com" $site="https://tenantdomain.sharepoint.com/sites/testDre1" #$credential = Get-credential Connect-PnPOnline -url $tenant -Credential 'CIE' #This command will delete the SharePoint site collection. You must replace the url "https://contoso.sharepoint.com/sites/SiteCollectionName" with your Sharepoint Online URL and use the Site Collection Name that is to be deleted for this script to work properly. Remove-PnPTenantSite -url $site #This command will pause the script for 20 seconds before proceeding. #Start-Sleep -s 20 #This script will permanently delete the SharePoint site collection after it is sent to the SharePoint Site Recycle Bin. You must replace the url “https://contoso.sharepoint.com/sites/SiteCollectionName” with your Sharepoint Online URL and use your Site Collection Name that is to be permanently deleted for this script to work properly. Clear-PnPTenantRecycleBinItem -url $site -Wait