| C# | |
|---|---|
public static void DirectoryDeleteFile( string pathToFile ) | |
Parameters
- pathToFile
Type: System.String
Path to the file.
The following example shows call the DirectoryDeleteFile method.
| C# | Copy Code |
|---|---|
string pathToFile = {pathToFile};
FileSystem.DirectoryDeleteFile(pathToFile); | |
| PHP | Copy Code |
|---|---|
$pathToFile = {pathToFile}; FileSystem::DirectoryDeleteFile($pathToFile); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family