[转]如何删除放置库(How to Delete the Drop Off Library)in SharePoint 2010
2012-04-15 02:12
801 查看
Content Organizer is a new feature in SharePoint Server 2010. If you enable the Content Organizer feature it adds a library called “Drop Off Library” to the site. The idea is that after you fill out the properties of a file, the file can be automatically moved to another library or folder according to rules created by the site owner. In other words, this is a document routing feature available in SharePoint Server 2010. In Microsoft Office SharePoint Server (MOSS) 2007 the routing feature was available for records routing in the Record Center site. In SharePoint Server 2010 it is available for all the sites.
Due to a bug, or some people may consider this a “feature”, once you activate the Content Organizer feature the Drop Off Library cannot be deleted because the option “Delete this document library’ is not available under Permissions and Management.
Obviously, you can hide the Drop Off Library under Navigation but that won’t delete the library itself. I am not sure why the option to delete is not available in the Library Settings but there are a couple of ways to work around this problem. You can either use SharePoint Manager 2010 from CodePlex or you can use the PowerShell. I recommend the PowerShell option.
Option 1: SharePoint Manager 2010
SharePoint Manager 2010 is an object model explorer. You can open the site and set the AllowDeletion property to true and then save the setting. You can download the SharePoint Manager 2010 here.
Option 2: PowerShell Script (recommended)
The second method is to use a PowerShell script. I prefer this method because in my opinion this option is much safer and easier than installing additional software on the server. Here are the steps.
In Windows Server 2008 go to Start, All Programs, Accessories, Windows PowerShell, Windows PowerShell ISE. DO NOT start the 32-bit version (x86), make sure you are starting the 64-bit version.
Register the SharePoint PowerShell commands by using the following command. If you used the 32-bit version of PowerShell ISE the command will fail.
Add-PSSnapIn Microsoft.SharePoint.PowerShell
Now one-by-one run the following four commands.
$spWeb = Get-SPWeb -Identity http://YourDomainName
$spLibrary = $spWeb.GetList(“http://YourDomainName/YourSiteName/DropOffLibrary“)
$spLibrary.AllowDeletion = “True”
$spLibrary.Update()
Replace the domain and site name in the above script, for example.
$spWeb = Get-SPWeb -Identity https://extranet.seattlepro.com/microsoft
$spLibrary = $spWeb.GetList(“https://extranet.seattlepro.com/microsoft/DropOffLibrary“)
$spLibrary.AllowDeletion = “True”
$spLibrary.Update()
As soon as you execute the last step and refresh the Document Library Settings page, you will see the option to delete the Drop Off Library available in the GUI, as shown below. Now you can delete the library.
If you have additional sites that you need to delete the Drop Off Library, you will need to run the scripts for those sites as well.
转自:http://blog.techgalaxy.net/archives/2851
Due to a bug, or some people may consider this a “feature”, once you activate the Content Organizer feature the Drop Off Library cannot be deleted because the option “Delete this document library’ is not available under Permissions and Management.
Obviously, you can hide the Drop Off Library under Navigation but that won’t delete the library itself. I am not sure why the option to delete is not available in the Library Settings but there are a couple of ways to work around this problem. You can either use SharePoint Manager 2010 from CodePlex or you can use the PowerShell. I recommend the PowerShell option.
Option 1: SharePoint Manager 2010
SharePoint Manager 2010 is an object model explorer. You can open the site and set the AllowDeletion property to true and then save the setting. You can download the SharePoint Manager 2010 here.
Option 2: PowerShell Script (recommended)
The second method is to use a PowerShell script. I prefer this method because in my opinion this option is much safer and easier than installing additional software on the server. Here are the steps.
In Windows Server 2008 go to Start, All Programs, Accessories, Windows PowerShell, Windows PowerShell ISE. DO NOT start the 32-bit version (x86), make sure you are starting the 64-bit version.
Register the SharePoint PowerShell commands by using the following command. If you used the 32-bit version of PowerShell ISE the command will fail.
Add-PSSnapIn Microsoft.SharePoint.PowerShell
Now one-by-one run the following four commands.
$spWeb = Get-SPWeb -Identity http://YourDomainName
$spLibrary = $spWeb.GetList(“http://YourDomainName/YourSiteName/DropOffLibrary“)
$spLibrary.AllowDeletion = “True”
$spLibrary.Update()
Replace the domain and site name in the above script, for example.
$spWeb = Get-SPWeb -Identity https://extranet.seattlepro.com/microsoft
$spLibrary = $spWeb.GetList(“https://extranet.seattlepro.com/microsoft/DropOffLibrary“)
$spLibrary.AllowDeletion = “True”
$spLibrary.Update()
As soon as you execute the last step and refresh the Document Library Settings page, you will see the option to delete the Drop Off Library available in the GUI, as shown below. Now you can delete the library.
If you have additional sites that you need to delete the Drop Off Library, you will need to run the scripts for those sites as well.
转自:http://blog.techgalaxy.net/archives/2851
相关文章推荐
- How to remove the ribbon tabs in list forms in SharePoint 2010
- How to hide my site and my document link in the right-top corner of sharepoint 2010
- How to delete all email in the mail server using telnet & WCScript - 如何用 Telnet 删除邮件服务器上的所有邮件
- How to use document library in Sharepoint 2010
- [Ubuntu] 如何在VirtualBox OSE中使用share folders -- How to use the share folders in VirtualBox OSE
- How to delete a large number of data in SharePoint for List when refreshing data?
- How to Activate the Drop Down Menu in MOSS 2010 Sites
- Adding Custom Actions to the List Item Menu in SharePoint 2010 Using SharePoint Designer 2010[Sharepoint中添加自定义菜单]
- How to Activate the Drop Down Menu in MOSS 2010 Sites
- How to Create Multilingual Webpart in SharePoint 2010 (C# 方式)
- How To Create SharePoint 2010 Site Collection In Its Own DB
- How to Create Mysite in SharePoint 2010
- 学习:How To Use Filters in SharePoint to show items in the current Calendar Month(转)
- How to redirect to a Custom Page for Event Receiver in SharePoint 2010
- How to unlock the locked tasks in Sharepoint Workflow
- How to Setup Load Balance in SharePoint 2010 Farm
- How to Modify the web.config file in SharePoint using SPWebConfigModification?
- 在sqlite中,如何删除字段? how to drop a column in sqlite
- 【转】How to install and configure SharePoint Server 2010 SP1 on the existing SP 2010 Farm
- How to delete a large number of data in SharePoint for List when refreshing data?