| DirectoryDelete Method |
Deletes a directory at the specified path.
Namespace:
Galactic.FileSystem
Assembly:
Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public static bool Delete(
string path,
bool recursive
)
Public Shared Function Delete (
path As String,
recursive As Boolean
) As Boolean
public:
static bool Delete(
String^ path,
bool recursive
)
static member Delete :
path : string *
recursive : bool -> bool
Parameters
- path
- Type: SystemString
The path of the directory to delete. - recursive
- Type: SystemBoolean
Recursively delete the files an subfolders of the directory.
Return Value
Type:
BooleanTrue if the directory was deleted or did not exist, false if an error occured
and the directory could not be deleted.
See Also