UH.LEE.KA

Menu

Skip to content
  • Home

Monthly Archives: October 2013

SharePoint 2010 PowerShell snippit for deleting all items in a list

Posted on 2013-10-03 by uhleeka
$SPAssignment = Start-SPAssignment;

$SPWeb = Get-SPWeb https://my.sharepoint.site.com -AssignmentCollection $SPAssignment;

$items = $SPWeb.Lists["My List to Delete All Items"].Items;
while($items.Count -gt 0){$items.Delete(0)};

Stop-SPAssignment $SPAssignment;
Filed Under: Code Snippits | Tagged: Powershell, SharePoint 2010

Categories

  • Code Snippits
  • Database
  • Git
  • Helpful Applications
  • Installs and Configs
  • Scripting

Tags

.NET 1.1 ASP.NET bash BSOD bubbletip C# Coda cygwin Expression Engine Firewall FTP 7.5 git HowTo IIS5 IIS7 IMG ISO JavaScript jQuery LVM MediaTemple MooTips MooTools ntop Phusion Passenger rsync Ruby on Rails SharePoint SharePoint 2010 snippit SQL Server SQL Server 2005 SQL Server 2008 ToolTip Ubuntu Urchin Virtual Box VirtualBox Virtual Host Names Vista Windows 2008 Windows DNS Windows XP WordPress Xml

Archives

  • May 2015
  • April 2015
  • October 2013
  • August 2013
  • June 2013
  • May 2013
  • May 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • May 2009
  • February 2009
  • November 2008
  • August 2008