This is the relevant part of my mule-config
As you've seen in https://stackoverflow.com/a/17974787/387927, the answer to Q1 is: because a transfer is still running, as the transport is in streaming mode, Mule will not issue a delete.
The answer Q2 would be to get a hold of the FtpConnector via the registry, get an FTPClient
instance with getFtp(uri)
using the URI of your FTP endpoint then call deleteFile
on the FTPClient
.