Solved
Thanks for the pointer.
I ended up implementing it like this
I ended up implementing it like this
$synchronizationResult =
$session.SynchronizeDirectories(
[WinSCP.SynchronizationMode]::Remote, $localPath, $remotePath,
$True, $False, [WinSCP.SynchronizationCriteria]::Time,
$transferOptionsSync)
# Removals
$Removals = $synchronizationResult.Removals
ForEach ($file in $Removals) {
Write-Host "Deleted " $File.FileName
}