Public class Delfile {/ ** * Remove all files and directories in the specified directory * @Param filepath Need to delete file directory path * / public static void deLallFile (String filepath) {/ ** * Specify delete directory path to construct a file object * / File file = new file (filepath); file [] filelist = file.listfiles (); / ** * Initialization subdirectory path * / string DirPath = NULL; if (fileList! = Null) for (int i = 0; I
DELALLFILE (DirPath);}} / ** * Delete given root directory * / file.delete ();}}