Hi is there a smart service that allows to delete a file by FTP? (in the F

Hi
is there a smart service that allows to delete a file by FTP? (in the FTP server?)
Thanks...

OriginalPostID-121363

OriginalPostID-121363

  Discussion posts and replies are publicly visible

Parents
  • There isn't one to my best knowledge but you can create a function plug-in by using the Apache FTP client and the following code.
    FTPClient client = new FTPClient();
    client.connect(host, port);
    client.login(loginname, password);
    client.deleteFile(fileNameOnServer);
    client.disconnect();

    Since there is no direct dependency on any of the Appian services, you would require the URL of the file in the FTP as a parameter and return a Boolean if the service was successful.
Reply
  • There isn't one to my best knowledge but you can create a function plug-in by using the Apache FTP client and the following code.
    FTPClient client = new FTPClient();
    client.connect(host, port);
    client.login(loginname, password);
    client.deleteFile(fileNameOnServer);
    client.disconnect();

    Since there is no direct dependency on any of the Appian services, you would require the URL of the file in the FTP as a parameter and return a Boolean if the service was successful.
Children
No Data