Delete a directory

Namespace: Contracts.IO
Assembly: Contracts (in Contracts.dll)

Public Shared Sub Delete( _ 
ByVal path As String, _ 
ByVal recursive As Boolean
)
This language is not supported or no code example is available.
public static void Delete( 
string path
bool recursive 
)
This language is not supported or no code example is available.
public:  
static void Delete( 
String^ path
bool recursive 
)
This language is not supported or no code example is available.
public static function Delete( 
path : String
recursive : boolean 
);
This language is not supported or no code example is available.

Parameters

path
Type: string

<default>

recursive
Type: bool

<default>

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1