Topic "Delete a selected file off ftp server using WinSCP session m"

Author Message

Hi guys,

I have now developed my site to enable users to upload a file and download a file from an FTP site using SFTP.

Before I download a file, I have added functionality to enable to the users to view the entire FTP directory on the screen in the form of a check box list.

Is there a way to allow users to delete a file using WinSCP session methods at all? So they click on a button that gets a list of all files residing on the FTP site...they can then click on a file and delete it from the FTP site.

Many thanks,
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
Not sure I understand.
But if you want to automate deleting files, use either script command "rm":

Or .NET assembly method Session.RemoveFiles:
Martin Prikryl
[View user's profile]

Joined: 2012-08-08
Posts: 42
Location: London
Thank you very much.

You can post new topics in this forum

Search Site

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