Delete()

File::Delete(const String&) method

Deletes the specified file or directory.

static void System::IO::File::Delete(const String &path)

Arguments

ParameterTypeDescription
pathconst String&The path of the file or directory to delete

See Also