Java tutorial
//package com.java2s; import java.io.File; import android.text.TextUtils; public class Main { public static boolean deleteFile(String fileName) { boolean res = false; if (!TextUtils.isEmpty(fileName)) { File file = new File(fileName); if (file.exists()) { res = file.delete(); } } return res; } }