File.delete

File.delete

Class Overview | Class Members | This Package | All Packages

Syntax
public boolean delete()
Returns
true if the file is successfully deleted; false otherwise.
Description
Deletes the file specified by this object. If the target file to be deleted is a directory, it must be empty for deletion to succeed.

Exceptions
SecurityException if a security manager exists, its checkDelete method is called with the pathname of this File to see if the application is allowed to delete the file.
See Also
getPath, checkDelete