I am trying to write a function that deletes all of the contents of a directory or folder. There are commands for deleting individual files, but I would not know the file names contained in the directory. Also, I can only delete empty directories, so if there is a directory inside the given directory, I won't be able to delete it if it has files in it. Any hints on getting the file names of a directory and determening if these are files or directories. Please help. Thanks in advance. [sig][/sig]