- Open PowerShell window in your system.
- Paste the below code in your PowerShell window.
- Run the script.
- [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint");
- $url = $args[0];
- $site = new-object microsoft.sharepoint.spsite($url);
- for ($i=0;$i -lt $site.allwebs.count;$i++)
- {
- write-host $site.allwebs[$i].url "...deleting" $site.allwebs[$i].recyclebin.count "item(s).";
- $site.allwebs[$i].recyclebin.deleteall();
- }
- write-host $site.url "...deleting" $site.recyclebin.count "item(s).";
- $site.recyclebin.deleteall();
- $site.dispose();

Gowtham RajamanickamPosted Apr 11, 2016, 1:40 AM
keep read my blogs
Gowtham RajamanickamPosted Apr 11, 2016, 1:40 AM
thanks Vijay
Vijay SPosted Jun 17, 2015, 8:55 AM
Good one