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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
U
Unit 42
Y
Y Combinator Blog
I
InfoQ
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
量子位
Microsoft Security Blog
Microsoft Security Blog
B
Blog
The Cloudflare Blog
F
Fortinet All Blogs
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
C
Check Point Blog
S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
T
Tailwind CSS Blog

博客园 - 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个记录,很给力。