You could use <CFDirectory> to get the listings of the directory, then loop over that calling FileDelete() on the results...
2009/11/9 Damo Drumm <[email protected]>: > > Hi > Im trying to delete all the contents within a folder using coldfusion, but > its deleting the actual folder each time > > The contents of the folder contains be PDF's > > has anyone any tips on deleting the contents and not the actual folder > > Thanks > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328130 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

