SIGN UP MEMBER LOGIN:    
ARTICLE

How to remove Drop off library from the SharePoint 2010 site using PowerShell

Posted by Vijai Anand Articles | Windows PowerShell January 11, 2011
This article explains how to remove Drop off library from the SharePoint 2010 site using powershell script.
Reader Level:


This article explains how to remove Drop off library from the SharePoint 2010 site using powershell script.

SharePoint 2010 introduced a new feature called Content Organizer. This article does not explain the Content Organizer feature. After activating the Content Organizer feature a new Drop off Library will be created in the site. Like the normal document library you can't delete this document library. You won't see an option "Delete this document library" (Drop off Library => Library Settings => Permissions and Management).

Fig1.gif

It doesn't work to remove this document library by deactivating the Content Organizer feature. You can remove this document library by using SharePoint object model or SharePoint Manager 2010 or Powershell.

Remove Drop Off Library using Powershell:

  • In this we will be seeing how to remove Drop Off Library using the following powershell

    $url = "http://serverName:2011/"
    $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()
    }
    }
     
  • Go to the SharePoint Site => Drop Off Library => Library settings => Permissions and Management.
  • Now you will be able to see "Delete this document library" option.

    Fig2.gif


Login to add your contents and source code to this article
share this article :
post comment
 

Hi The PowerShell script could be taken a step further as what would be good is for each site/subsite the drop off is also removed. In my case I want to get this done quickly for the 10 or so I have to remove them manually (after SPM2010) ... but imagine how long it would take for multiple collections and subsites.... Daniel

Posted by Daniel Westerdale Jan 28, 2011
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Team Foundation Server Hosting
Become a Sponsor