"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:

Author's Profile

My photo
India
A SharePoint Enthusiast working as a Project Lead 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. Apart from being a SharePoint Enthusiasts, I am a husband, a father and a blogger. I love to travel and explore new landscapes and meet people of various culture. I am passionate about learning new technology trends in IT. I love spending time on my fitness and have a deep enthusiasm for urdu poetry and career counseling.

Popular Posts

Powered by Blogger.

Contact Form

Name

Email *

Message *

Total Pageviews