我有一个简单的Sitecore8 8/PowerShell脚本,在该脚本中我删除了图像子项并发布了父项:
$child1 = Get-Item $child1Path
Remove-Item $child1 -Force -Permanently
Publish-Item -Item $parent1 -Recurse -PublishMode SingleItem -Language "en*"在运行时没有删除和错误。
我怎么知道它为什么不删除?
发布于 2019-02-20 10:04:15
可以使用带有-Path参数的Remove项。或使用
$child1 =Remove-项目
显然,您的脚本没有抛出一个错误,但删除不是这样的。请参阅文档https://doc.sitecorepowershell.com/working-with-items
https://stackoverflow.com/questions/54770877
复制相似问题