public abstract void delete (Path path) throws IOException

Deletes a file. This method works in exactly the manner specified by the Files.delete method.

Parameters:
path     the path to the file to delete

Exceptions:
NoSuchFileException     if the file does not exist (optional specific exception)
DirectoryNotEmptyException     if the file is a directory and could not otherwise be deleted because the directory is not empty (optional specific exception)
IOException     if an I/O error occurs
SecurityException     In the case of the default provider, and a security manager is installed, the SecurityManager.checkDelete(String) method is invoked to check delete access to the file