ZennoLab Assemblies Documentation
DirectoryDeleteFile Method
Example 

Type: System.String

Path to the file.

Removes the file
Syntax
public static void DirectoryDeleteFile( 
   string pathToFile
)

Parameters

pathToFile

Type: System.String

Path to the file.

Example
The following example shows call the DirectoryDeleteFile method.
string pathToFile = {pathToFile};
FileSystem.DirectoryDeleteFile(pathToFile);
$pathToFile = {pathToFile};
FileSystem::DirectoryDeleteFile($pathToFile);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback