Skip to content

Instantly share code, notes, and snippets.

@buettiB

buettiB/DeleteItems.ps1 Secret

Created May 12, 2017
Embed
What would you like to do?
Löscht alle Elemente aus einer SharePoint Liste
Add-PSSnapin Microsoft.SharePoint.PowerShell
cls
(get-spweb http://hamburg/).Lists["Meine Liste"].Items | %{$_.ParentList.GetItemById($_.Id).Delete()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment