Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
6 subscribers
Views
1259 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi is there a smart service that allows to delete a file by FTP? (in the F
mokhtarc
over 10 years ago
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
0
Sathya Srinivasan
Appian Employee
over 10 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Cichy
Appian Employee
over 10 years ago
You can extend the Remote Transfer plugin code and add another smart service module to the plugin. This should not be a function since it has a "side effect" of deleting a file (unless you make a "writer" function).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel