I have tried to script myself.
I could synchronize the files but I want to download the files and delete after the download from the folder.
Could someone please check why I am getting error.
I am trying to download all the files from download folder and delete after the download.
Resources can be found here – https://winscp.net/eng/docs/scripting
option batch abort
option confirm off
open sftp://admin:firstname.lastname@example.org -hostkey="ssh-rsa 1024 NT733Kz444I4FmYVaVaG6tP9Tug8bU5l4tb+Ug1K168o="
get local C:\Temp\Target /folder/message/download -delete