If you don't mind synchronizing, you can just delete the directory (as
you are now) and then recreate an empty one after you're done.
Otherwise you'll need to use CFDIRECTORY to get a list of the
contained files and delete them individually with CFFILE.

cheers,
barneyb

On Monday, November 9, 2009, Damo Drumm <[email protected]> wrote:
>
> 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:328127
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to