Follow the steps to Empty Site Collection Recycle Bin using SharePoint 2010 Management Shell (PowerShell):
$siteCollection = New-Object Microsoft.SharePoint.SPSite($sitecollectionUrl)
Contact Me for any technical help related with SharePoint 2010.
1.
Open SharePoint 2010 Management Shell with Run
as administrator
2.
Modify Site collection Url in following script
and execute:
$sitecollectionUrl =
"http://site:port/sitecollection"
$siteCollection = New-Object Microsoft.SharePoint.SPSite($sitecollectionUrl)
write-host("Items to be deleted : "
+$siteCollection.RecycleBin.Count.toString())
$now = Get-Date
write-host("Deleting started at "
+$now.toString())
$siteCollection.RecycleBin.DeleteAll();
$now = Get-Date
write-host("Deleting completed at "
+$now.toString())
$siteCollection.Dispose();
Contact Me for any technical help related with SharePoint 2010.
1 comment:
visit www.sysfygroup.com for more details on this topic
From Metro man
Post a Comment