惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MongoDB | Blog
MongoDB | Blog
罗磊的独立博客
美团技术团队
B
Blog
量子位
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
DataBreaches.Net
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
Blog — PlanetScale
Blog — PlanetScale
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题

博客园 - by1455

Local policy - User rights assignment 对照表 SQL 性能不佳的几个原因 PowerShell “execution of scripts is disabled on this system.” Office Web app server 2013 目前无法和windows server 2012 R2兼容。 Sharepoint 2013 出现0x80131904错误 IE 8 下sharepoint 2013 难看的字体的解决方案 微软撤回sharepoint 2013 sp1 修改TEMPDB所在的路径 当DATABASE进入了suspect模式以后 sharepoint 2013 sp1 patch安装后的手工运行 Sharepoint 2013 多服务器域的目录服务器和搜索服务的配置 加速安装 Sharepoint 2013 SP1 windows 2012R2 上必须要用sharepoint 2013 sp1. Sharepoint 2013 - 直接显示Doclib中的html page 禁用loop back check Sharepoint 2013/2010 登陆身份验证 blank site teamplate去了哪里? sharepoint 2013 service pack 和 Hotfix 版本 如何从Microsoft web platform installer取得离线安装包
如何删除sharepoint列表List中的全部数据。
by1455 · 2014-03-17 · via 博客园 - by1455

可以使用excel,但是powershell会比较方便 (admin mode - Sharepoint powershell)

[System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

$siteUrl = "SPS Server URL"

$webName = "SubSite"

$listName = "List Name"

$site=Get-SPSite($siteUrl)

$web=$site.openweb($webName)

$list=$web.Lists[$listName]

$items=$list.Items

Write-Host  $items.Count  

$items|%{$list.GetItemById($_.Id).Delete()}  

$web.Dispose()

$site.Dispose()

删除了20000个记录,很给力。