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