Java File Delete delete(File file)

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

Description

delete

License

Open Source License

Declaration

public static boolean delete(File file) 

Method Source Code


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

public class Main {

    public static boolean delete(File file) {
        if (file == null)
            return false;
        return file.delete();
    }//from  ww  w  .  j  ava2 s. com

    public static boolean delete(String path) {
        if (path == null)
            return false;
        File file = new File(path);
        return file.delete();
    }
}

Related

  1. delete(File file)
  2. delete(File file)
  3. delete(File file)
  4. delete(File file)
  5. delete(File file)
  6. delete(File file)
  7. delete(File file)
  8. delete(File file)
  9. delete(File file)