Skip to content

Instantly share code, notes, and snippets.

@dcouto
Created April 12, 2021 15:09
Show Gist options
  • Save dcouto/7c9b24088b0ea0224081099e1f2f6973 to your computer and use it in GitHub Desktop.
Save dcouto/7c9b24088b0ea0224081099e1f2f6973 to your computer and use it in GitHub Desktop.
New-UsingBlock (New-Object Sitecore.Data.BulkUpdateContext) {
Get-Item -Path master: -Query "/sitecore/content/My Site/*[@@name != 'Item Name']" | Remove-Item -Recurse -Permanently
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment