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

Author Message
Guest




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,
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Not sure I understand.
But if you want to automate deleting files, use either script command "rm":
https://winscp.net/eng/docs/scripting
https://winscp.net/eng/docs/scriptcommand_rm

Or .NET assembly method Session.RemoveFiles:
https://winscp.net/eng/docs/library
https://winscp.net/eng/docs/library_session_removefiles
_________________
Martin Prikryl
dwinn86
[View user's profile]

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

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License