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
Exception | Description |
---|---|
ArgumentNullOrEmptyException | In case if null or empty string passed as value of parameter directoryPath. |
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