Skip to content

Instantly share code, notes, and snippets.

@nlarkin
Created May 30, 2013 18:54
Show Gist options
  • Select an option

  • Save nlarkin/5680198 to your computer and use it in GitHub Desktop.

Select an option

Save nlarkin/5680198 to your computer and use it in GitHub Desktop.
Delete All List Items in a sharepoint list.
$w = Get-SPWeb http://spweburlhere
$l = $w.Lists["List Name Here"]
$c = $l.Items
$c | % {$l.GetItemById($_.ID).Delete()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment