DeleteEverythingInDirectory — Deletes contents of directory, all files and subdirectories.
None.
TargetDirectoryPath | Path of directory to delete contents of. |
Note that this command will not delete the directory itself.
For information regarding exceptions / errors, see
here.
% mkdir MyDir
% String2File one MyDir/one.txt
% DeleteEverythingInDirectory MyDir
% file exists MyDir/one.txt
0