Click or drag to resize
FileSystemRepositoryHelperDeleteDirectory Method
Deletes a directory specified by directoryPath.

Namespace: CMS.ContinuousIntegration
Assembly: CMS.ContinuousIntegration (in CMS.ContinuousIntegration.dll) Version: 13.0.131
Syntax
C#
public static bool DeleteDirectory(
	string directoryPath,
	bool recursive = false
)

Parameters

directoryPath
Type: SystemString
Absolute path to the directory.
recursive (Optional)
Type: SystemBoolean
True to remove directories, subdirectories, and files in path, otherwise false.

Return Value

Type: Boolean
False if the delete method throws an IOException with HResult 0x80070091 (ERROR_DIR_NOT_EMPTY), otherwise true.
Remarks
If the delete method throws an IOException with HResult 0x80070091 (ERROR_DIR_NOT_EMPTY), it is ignored.
See Also