remove


Description:

public static bool remove (Path path)

Deletes a file or empty directory.

Example:

    var path = new Path ("/tmp/to_delete.txt");
bool ok = Files.remove (path);

Parameters:

path

path to file or empty directory.

Returns:

true if deletion succeeded, false otherwise.