If you are dealing with a large amount of files, or want to recurse, you can use cfexecute to run the command line equivalent. That makes your code a bit less portable though.
~Brad -----Original Message----- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 3:53 PM To: CF-Talk Subject: RE: deleting all files in a directory with code Try the cfdirectory tag to get the files and cffile to delete them. -----Original Message----- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 4:48 PM To: CF-Talk Subject: deleting all files in a directory with code hi is there a way to delete all files in a directory through code, tag or function thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303366 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4