Last active
September 26, 2022 15:28
-
-
Save agehlot/b7f6971724045a797abdcb78aeaba3e5 to your computer and use it in GitHub Desktop.
Sample PowerShell script to delete Sitecore standard values item and also list out all items that are type of Template.
This file contains hidden or 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
$templateIds1 = Get-ChildItem /sitecore/templates/Feature/Fortune -Recurse | | |
? { $_.DisplayName -eq "__Standard Values" } | Remove-Item | |
$templateIds = Get-ChildItem /sitecore/templates/Feature/Fortune -Recurse | | |
? { $_.TemplateName -eq "Template" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment