Java File Delete nio deletePidFile()

Here you can find the source of deletePidFile()

Description

delete Pid File

License

Open Source License

Declaration

public static boolean deletePidFile() throws Exception 

Method Source Code

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

import java.nio.file.Path;
import java.nio.file.Paths;

public class Main {
    public static final String NEO4J_ETL_UI_PID_FILE_NAME = "neo4j-etl-ui.pid";

    public static boolean deletePidFile() throws Exception {
        Path file = Paths.get(System.getProperty("java.io.tmpdir"), NEO4J_ETL_UI_PID_FILE_NAME);

        return file.toFile().delete();
    }//from  w  w w .j  a  v  a  2  s .c  o m
}

Related

  1. deleteFiles(File directory, String affix)
  2. deleteIfEmpty(final File directory)
  3. deleteLocalFile(final String fileName)
  4. deleteLocalFileOrDirectory(File file)
  5. deleteMatching(File baseFile, String regex)
  6. deleteQuietly(File file)
  7. deleteRecursive(File fileOrDirectory)
  8. deleteRecursively(File fileOrDir)
  9. deleteRecursively(File root)