FileUtility.TryDelete method

Attempts to delete the file at the specified path, returning true if successful.

public static bool TryDelete(string path)
parameter description
path The path.

Return Value

true if the file was successfully deleted or does not exist, otherwise false.

See Also