Java File Path Delete delFile(String filePath)

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

Description

del File

License

Open Source License

Declaration

public static void delFile(String filePath) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static void delFile(String filePath) {
        File picFile = new File(filePath);
        if (picFile.exists()) {
            picFile.delete();//from  w  w w.  j  a  v a  2s. c  om
        }
        picFile = null;
    }
}

Related

  1. deleteTemp(String tempPath)
  2. deleteTempDataFile(String dataFilePath)
  3. deleteTempFile(String sourceFilePath)
  4. deleteTree(final File path)
  5. deleteWallpaper(String file_name, Map dimmensions, String basepath, List resolution_directories)
  6. delFile(String filePath, String fileName)
  7. delFile(String filePathAndName)
  8. delFile(String filePathAndName)
  9. delFile(String filePathAndName)