You can iterate through the XML files generated<http://msdn.microsoft.com/en-us/library/07wt70x2.aspx>, then you can check the creation date of the XML file<http://msdn.microsoft.com/en-us/library/system.io.file.getcreationtime.aspx>.
If the file is older than X days you can delete the file<http://msdn.microsoft.com/en-us/library/system.io.file.delete.aspx> . Another approach would be using FileSystemWatcher: http://articles.techrepublic.com.com/5100-10878_11-6165137.html Hope it helps, Guilherme Utrabo On 8 June 2010 02:43, Gourav <[email protected]> wrote: > Hi All, > I am working on some Travel project.In which after all searching > a XML file generate automatically....So i want to delete this XML file > after some time automatically.If anybody have knowledge how i can > delete these Automatically generate XML file...pls i'll wait for > reply... > > > > > -- > Best regards, > Gourav Vishnoi > +91-9871157845
