I can\'t figure out how to delete all contents of a directory.
For cleaning out a directory, I want to remove all files and directories inside it: I want to wipe ev
Following will delete all content from the src folder but leaves the folder itself untouched:
task deleteGraphicsAssets(type: Delete) { def dirName = "src" file( dirName ).list().each{ f -> delete "${dirName}/${f}" } }