Click or drag to resize
Galactic API

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
)

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: Boolean
True if the directory was deleted or did not exist, false if an error occured and the directory could not be deleted.
See Also