Delete()

Directory::Delete(const String&, bool) method

Removes the specified file or directory. Does not throw.

static void System::IO::Directory::Delete(const String &path, bool recursive=false)

Arguments

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