What is the SPE equivalent of "Revert Tree"?
I've attempted the following:
$config = [Sitecore.Configuration.Factory]::GetConfiguration();
$dataFolderPath = ($config.sitecore."sc.variable" | ?{ $_.name -eq 'dataFolder'}).Value
$serializationPath = "$dataFolderPath/serialization/master$($MyBucket.ItemPath)"
...
if(test-path "$serializationpath.item") {
# restore the empty folder to delete children (~10,000) as a side-effect
deserialize-item -path $serializationPath -root "$dataFolderPath/serialization/" -ForceUpdate -DisableEvents
}
. But this does not seem to do the same thing as the button. The documentation doesn't reference this use case at all. Any feedback would be appreciated.
Import-Item
it appears that "revert" is tied to the "ForceUpdate" switch. The "Recurse" switch indicates that a tree should be loaded rather than just the item.