Java File Path Delete delete(String filePath)

Here you can find the source of delete(String filePath)

Description

delete

License

LGPL

Declaration

public static boolean delete(String filePath) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.io.File;

public class Main {
    public static boolean delete(String filePath) {
        File file = new File(filePath);
        return file.delete();
    }//from  ww  w  .  j ava  2 s . c  o  m
}

Related

  1. delete(File path, String... exclude)
  2. delete(final File path)
  3. delete(String fileNameWithFullPath)
  4. delete(String filePath)
  5. delete(String filePath)
  6. delete(String filePath)
  7. delete(String filePath, boolean recursive)
  8. delete(String path)
  9. delete(String path)