The file is being deleted at the end of the route. If the exchange does not have any exceptions at the end of the route.
So it depends what exceptions is being thrown and how - if you handle that. You do not post much details about your route and what exception is thrown etc. Generally when asking for help, then add details that can help people to give better answers, than writing a quick mail. On Thu, Apr 4, 2013 at 8:07 AM, sarfaraj <sarfarajsay...@gmail.com> wrote: > Or do I need to remove "delete=true" from SFTP consumer and explicitly delete > when route completed successfully ? > > There is no other way to do so ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Delete-files-in-SFTP-only-when-route-completed-successfully-tp5730295p5730308.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen