Microsoft SDK for Java

File.delete

Deletes a file.

Syntax

public static void delete( String path )

Parameters

path

The path of the file to delete.

Exceptions

WinIOException thrown if an error occurs.

Remarks

The file specified by the designated path is deleted. It is not an error if the specified file does not exist.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.