"The day you stop learning SharePoint is the day you stop using it."

Delete Drop Off Library through PowerShell

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:
$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()
}
}
Share:

0 comments:

SharePoint-StackExchange Moderator

Author's Profile

My photo
India
A SharePoint Enthusiast working as a Lead Solution Architect for an IT Software & Consulting Company in Mumbai. I believe in giving back to the community through which I also learn and develop and eventually grow as an individual and professional. This blog is a small contribution to the community where I live in and may help someone who is seeking knowledge like me.

Popular Posts

Powered by Blogger.

Contact Form

Name

Email *

Message *

Total Pageviews