List of utility methods to do Directory Clear
deleteDirectory(path); File dir = new File(path); if (!dir.exists()) dir.mkdir();