Topic "Remove Single File From a Server"

Author Message
[View user's profile]

Joined: 2014-02-07
Posts: 1
Location: USA
I am able to get a list of all files on the server and able to download all of them to a local directory. Now I need to delete but ONLY ONE file out of (x) files on the server. I saw session.removefiles but it looks like that will remove ALL files.

Knowing the file name, Need only to remove 1 file.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
The Session.RemoveFiles removes a file/files that you give it in argument.
So Session.RemoveFiles("/path/file") removes just the one file.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License