DeleteDirectoryAsync(string directoryName, bool recursive) Method

Deletes the specified directory if it exists.

Syntax

public abstract System.Threading.Tasks.Task DeleteDirectoryAsync(string directoryName, bool recursive)

Parameters

directoryName
Type: string

The name of the directory.

recursive
Type: bool

Value indicating whether the directory contents should recursively be deleted as well.