Here you can find the source of deleteFiles(String dir, String... files)
public static void deleteFiles(String dir, String... files)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void deleteFiles(String dir, String... files) { if (!dir.endsWith(File.separator)) { dir += File.separator; }//from w w w .jav a 2 s . c o m for (String file : files) { new File(dir + file).delete(); } } }