Sonntag, 29. Januar 2012

Löschen einer Liste mit Powershell


Beim Etwickeln am Sharepoint brauche ich offter die Sharepointsinhalte schnell zu entfernen. Hier ist die Zwei Zeilen, wie man eine Liste aus der Sharepoint über Powershell entfernen kann:


$w = Get-SPWeb "http://sps2010"
$w.Lists.Delete([System.Guid]$w.Lists["My Custom List"].ID)

Keine Kommentare:

Kommentar veröffentlichen

The content type is part of an application feature

Recently I had the problem in a production environment that after the deactivation of a feature I was not able to delete the content ty...