Here you can find the source of deleteFiles(String actionPath, String filePath)
public static void deleteFiles(String actionPath, String filePath)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void deleteFiles(String actionPath, String filePath) { String path = actionPath + File.separator + filePath; File deleteFile = new File(path); if (deleteFile.isFile() && deleteFile.exists()) { deleteFile.delete();/* ww w . j ava2 s . c om*/ } } }