Android File Delete deleteFile(File file)

Here you can find the source of deleteFile(File file)

Description

delete File

Declaration

public static void deleteFile(File file) 

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  va 2  s.  c  o  m
    }

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

Related

  1. deleteFile(File f)
  2. deleteFile(File f)
  3. deleteFile(File file)
  4. deleteFile(File file)
  5. deleteFile(File file)
  6. deleteFile(File file)
  7. deleteFile(File root)
  8. deleteFile(File spec)
  9. deleteFile(String filePath)