Simply deactivating Content Organizer Feature won’t help in deleting the Drop Off Library.
Execute the below PowerShell Script and get the job done:
Solution:
Execute the below PowerShell Script and get the job done:
Solution:
$url = "http://<siteurl>/"
$feature = Get-SPFeature "DocumentRouting"
$site = New-Object Microsoft.SharePoint.SPSite($url)
foreach ($web in $site.AllWebs)
{
if ($web.Features[$feature.ID])
{
Disable-SPFeature $feature -Url $web.Url -Force -Confirm:$false
}
$list = $web.Lists["DROP OFF LIBRARY"]
if (!$list)
{
Write-Host "-Drop Off Library not found";
}
else
{
Write-Host "-"$list “ was found in web" $web
$list.AllowDeletion = $true;
$list.Update()
}
}
0 comments:
Post a Comment