Platform Core .NET Assemblies API
DeleteDirectory Method
See Also  Send Feedback
Terrasoft.Common Namespace > FileUtilities Class : DeleteDirectory Method
directoryPath
The name of the directory to remove.
isRecursive
true to remove directories, subdirectories, and files in path; otherwise, false. Default value: false

Glossary Item Box

Deletes the specified existing directory and, if indicated, any subdirectories and files in the directory.

Syntax

 
C#
 
 

Parameters

directoryPath
The name of the directory to remove.
isRecursive
true to remove directories, subdirectories, and files in path; otherwise, false. Default value: false

Exceptions

ExceptionDescription
ArgumentNullOrEmptyExceptionIn case if null or empty string passed as value of parameter directoryPath.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.