How can I delete a file from an ftp server using a java program? I am successfully able to upload files on the ftp using the following code:
public static void m
You can use Apache FTPClient to do this and all other commands on FTP. Use it something like this:
... FTPClient client = new FTPClient(); client.connect(host, port); client.login(loginname, password); client.deleteFile(fileNameOnServer); client.disconnect(); ...