System::IO::Directory::Delete method

Directory::Delete method

Removes the specified file or directory. Does not throw.

static void System::IO::Directory::Delete(const String &path, bool recursive=false)
ParameterTypeDescription
pathconst String&The path to the directory or file to be removed
recursiveboolIf path specifies a non-empty directory then recursive specifies if if all directory’s content should be removed recursively; if the directory specified by path is not empty and recursive is ‘false’ then the operation fails

See Also