【发布时间】:2014-08-03 04:24:28
【问题描述】:
我的团队网站中有需要删除的文档库。由于某种原因,它在站点中不可见,在回收站中也不存在。我确信这不会以任何方式隐藏。
我查看了内容数据库,发现该列表存在于 AllLists 表中。我得到了列表的 GUID 并尝试使用以下命令将其删除
PS C:\Users\spadmin> Get-SPWeb "http://teamsites/sites/siteA/subSiteA" | Where-Object {$_.Lists.Delete([System.Guid]"F341C105-7C2F-4F60-97EC-5B232C4FC94E")}
我看到以下错误。
Exception calling "Delete" with "1" argument(s): "List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user."
At line:1 char:86
+ Get-SPWeb "http://teamsites/sites/siteA/subSiteA" | Where-Object {$_.Lists.Delete <<<< ([System.Guid]"F341C105-7C2F-4F60-97EC-5B232C4FC94E")}
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
知道如何摆脱这个列表。我想彻底删除它。
提前致谢。
【问题讨论】:
标签: sharepoint sharepoint-2010