문제
사이트 컬렉션의 모든 휴지통을 비우는 것이 가능합니까?나는 관리 페이지에있는 휴지통에 들어가 시도했지만 비어 있었다.
해결책
The following powershell script will delete all items in the site collection recycle bin and recycle bins of each of the webs in the provided sitecollection url:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint");
$site = new-object microsoft.sharepoint.spsite("SITE COLLECTION URL");
for ($i=0;$i -lt $site.allwebs.count;$i++)
{
if($site.allwebs[$i].recyclebin.count >0)
{
$site.allwebs[$i].recyclebin.deleteall();
}}
$site.recyclebin.deleteall();
$site.dispose();
제휴하지 않습니다 sharepoint.stackexchange