Created
April 12, 2021 15:09
-
-
Save dcouto/7c9b24088b0ea0224081099e1f2f6973 to your computer and use it in GitHub Desktop.
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
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