-
-
Save buettiB/03d601280e287910a847810d68251ec3 to your computer and use it in GitHub Desktop.
Löscht Listenelemente die aus einer CAML Abfrage zurückgegeben werden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-PSSnapin Microsoft.SharePoint.PowerShell | |
cls | |
$caml = '<Where><Eq><FieldRef Name="Auswahl"/><Value Type="Text">Drei</Value></Eq></Where>' | |
$query = new-object Microsoft.SharePoint.SPQuery | |
$query.Query=$caml | |
$meineItems = (get-spweb http://hamburg/).Lists["Meine Liste"].GetItems($query) | |
$meineItems | %{$_.ParentList.GetItemById($_.Id).Delete()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment