Deletes a file. This method works in exactly the manner specified by the
Files.delete
method.
path
| the path to the file to delete |
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 |
Diagram: FileSystem