Java File Path Delete delFile(String filePathAndName)

Here you can find the source of delFile(String filePathAndName)

Description

del File

License

Apache License

Declaration

public static void delFile(String filePathAndName) 

Method Source Code

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

public class Main {

    public static void delFile(String filePathAndName) {
        java.io.File myDelFile = new java.io.File(filePathAndName);
        if (myDelFile.exists()) {
            myDelFile.delete();/*from ww  w . java 2  s. co m*/
        }

    }
}

Related

  1. delFile(String filePath)
  2. delFile(String filePath, String fileName)
  3. delFile(String filePathAndName)
  4. delFile(String filePathAndName)
  5. delFile(String filePathAndName)
  6. DelFile(String in_Path, ArrayList arrFileList)
  7. delFile(String path)
  8. delFile(String pathName)
  9. delFileIfExists(String path)