Hi,
I am writing an ISHRemote script to delete the contents of a folder on our Tridion Docs server.
The plan is to do deletions in this order:
publications, publications folder, root ditamaps, other ditamaps, maps folder, topics, topics folder.
I have started with the following code
$pubsFolder = Get-IshFolder -FolderPath $pubsFolderPath
$ishObjects = Get-IshFolderContent -IShSession $ishSession -IshFolder $pubsFolder
if($ishObjects.length -gt 0)
{
foreach($ishObject in $ishObjects)
{
Remove-IshPublicationOutput -IshObject $ishObjects -Force
}
}
which executes fine the first time and $ishObjects is empty on second execution. However when I navigate into Tridion Docs webclient, I am still seeing the pre-existing publication object :-|
How is this? Am I doing the removal properly according to ISHRemote?
Any advice appreciated,
Regards,
Ann