Method Delete
Delete(bool, bool)
Deletes the specified directory and, if indicated, any subdirectories and files in the directory.
Declaration
void Delete(bool recursive = false, bool ignoreNotFound = true)
Parameters
Type | Name | Description |
---|---|---|
bool | recursive | true to remove directories, subdirectories and files in path; otherwise, false. |
bool | ignoreNotFound | true to ignore directory not found errors; otherwise, false to throw DirectoryNotFoundException if the file was not found. |