Java File Path Delete deleteFiles(String actionPath, String filePath)

Here you can find the source of deleteFiles(String actionPath, String filePath)

Description

delete Files

License

Open Source License

Declaration

public static void deleteFiles(String actionPath, String filePath) 

Method Source Code

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

import java.io.File;

public class Main {

    public static void deleteFiles(String actionPath, String filePath) {
        String path = actionPath + File.separator + filePath;
        File deleteFile = new File(path);
        if (deleteFile.isFile() && deleteFile.exists()) {
            deleteFile.delete();/* ww  w .  j  ava2  s  . c om*/
        }
    }
}

Related

  1. deleteFileFromDisk(String name, String path)
  2. deleteFileIfExists(String path)
  3. deleteFileOrDirectory(String path)
  4. deleteFileOrDirectory(String path)
  5. deleteFiles(final File pathname)
  6. deleteFiles(String filePath)
  7. deleteFilesInDirectory(File path)
  8. deleteFilesInDirectory(String pathname)
  9. deleteFilesinPath(File pBaseDir, String pFileName)