That is not really the point with the camel file components. That you use it to delete arbitrary files. It was for consuming, processing the files, and then afterwards decide what to do with that original file, such as delete / move etc.
If you want to delete some file, there is plenty of java code that can do that, you can also use Camel to call a method on a java bean, where you can tell it which file to delete, if you want to integrate this into a Camel route etc. On Fri, Dec 4, 2015 at 3:14 AM, anish.somadevan <netan...@gmail.com> wrote: > Thanks for your reply Yogesh. > > I would be creating a file in one of my route, and then want to delete it in > an another route. Would that be possible using the File component > delete=true? > > Thanks, > Anish > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Delete-a-file-from-route-XML-tp5774626p5774650.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2