Here you can find the source of doDelete(File f)
public static void doDelete(File f)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void doDelete(File f) { try {/*from w w w .j a v a2 s.c o m*/ if (f != null && f.exists()) { f.delete(); } } catch (Exception e) { } } }