DirectoryUtility.TryDelete method

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

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

Return Value

true if the directory was successfully deleted, otherwise false.

See Also