Here you can find the source of deletePidFile()
public static boolean deletePidFile() throws Exception
//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 }