Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import java.util.List; public class Main { protected static void removeFiles(List<String> filesToRemove) { for (String filename : filesToRemove) { File datafile = new File(filename); datafile.delete(); } } }