I have a file:inbound-channel-adapter that polls a directory for files and then sends it via SFTP to a server. After it's uploaded (which works fine), the original file needs to be deleted; how do I delete the original file after it's uploaded? In file:outbound-channel-adapter, there's a property I can set to autodelete the file.
<file:inbound-channel-adapter
id="incomingFiles"
channel="myFiles"
directory="file:/tmp/kots">
<int:poller id="poller" fixed-delay="1000"/>
</file:inbound-channel-adapter>
<int:channel id="myFiles"/>
....
<sftp:outbound-channel-adapter
id="sftpOutboundAdapter"
channel="myFiles"
charset="UTF-8"
remote-directory="/tmp/testing"
session-factory="sftpSessionFactory"/>