Re: Directory listing
If you want to delete all files in a folder, just do:
See https://winscp.net/eng/docs/scriptcommand_rm
rm /path/to/the/folder/*
See https://winscp.net/eng/docs/scriptcommand_rm