Android File Delete deleteFile(String path)

Here you can find the source of deleteFile(String path)

Description

delete File

Declaration

public static void deleteFile(String path) 

Method Source Code

//package com.java2s;
import java.io.*;

public class Main {

    public static void deleteFile(String path) {
        File file = new File(path);
        deleteFile(file);//from  w w  w . j a v  a 2 s  . c  o m
    }

    public static void deleteFile(File file) {
        if (file.exists()) {
            file.delete();
        }
    }
}

Related

  1. deleteFile(String filePath)
  2. deleteFile(String filename)
  3. deleteFile(String path)
  4. deleteFile(String path)
  5. deleteFile(String path)
  6. deleteFile(String strSrc)
  7. deleteFileOnly(String path)
  8. deleteFiles(File file)
  9. deleteFiles(File file, String regex)