There's a tag in the tag gallery called CF_DeleteDirectory. It does what you describe, using only CFFILE and CFDIRECTORY. I've used it once or twice, and it does its job pretty well. It's even recursive, something I didn't think I'd see in CF. - Randy Smith [EMAIL PROTECTED] Software Change Center Hewlett-Packard Company -----Original Message----- Date: Mon, 12 Feb 2001 21:53:31 -0600 From: "Chris Montgomery" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: [Deleting Directories, Subdirectories, and files] Message-ID: <[EMAIL PROTECTED]> Alex, Thanks for the quick response. Unfortunately, the app will be hosted on a shared server and cfexecute isn't available for security reasons. Chris Montgomery [EMAIL PROTECTED] Web Development & Consulting http://www.astutia.com Allaire Consulting Partner 210-490-3249/888-745-7603 Fax 210-490-4692 AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78 > -----Original Message----- > From: Alex [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 9:31 PM > To: CF-Talk > Subject: Re: [Deleting Directories, Subdirectories, and files] > > > use cfexecute and run a command line delete > > "Chris Montgomery" <[EMAIL PROTECTED]> wrote: > What's the easiest way to delete a directory with two subdirectories and > files in those subdirectories since CFDirectory won't delete directories > unless they're empty? Do I need to loop thru each > directory/subdirectory and > get a list of the files in them, then loop again and delete them > one by one? > > TIA, > > Chris Montgomery [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------ Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

