sorry, i should have specified that it returns a query object of the files in the directory :)
On 4/6/07, Charlie Griefer <[EMAIL PROTECTED]> wrote: > cfdirectory returns a query object. loop over the results and use > cffile action="delete". > > On 4/6/07, Deepak Gupta <[EMAIL PROTECTED]> wrote: > > Hi > > > > I need to create a scheduled task at the server level, the task will run a > > script that actually deletes all the contents of a folder. How i can do > > that? > > > > I tried using cfdirectory but it deletes the whole directory. How I can > > just delete the contents of a directory not the directory itself and run > > that every night. > > > > Please suggest me a way to do that. > > > > DG > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274743 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4