Delete all files and directories of specific directory
![Post Post](./styles/SIBVisions/imageset/icon_post_target.gif)
If you want to delete all files and directories of a specific directory - with JVx - check following snippet:
- Code: Select all
String sTmp = System.getProperty("java.io.tmpdir");
File fi = new File(sTmp, "myapp");
fi.mkdirs();
//create temporary files
FileUtil.deleteSub(fi);
//or
//FileUtil.delete(fi);