Here you can find the source of deleteFile(String archiveFilename)
public static void deleteFile(String archiveFilename)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void deleteFile(String archiveFilename) { try {//from ww w . java 2 s. c o m new File(archiveFilename).delete(); } catch (Exception ex) { throw new RuntimeException("Cannot remove file: " + archiveFilename, ex); } } }