FileDelete Method (String, Boolean) |
[AlphaFS] Deletes the specified file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void Delete(
string path,
bool ignoreReadOnly
)
Public Shared Sub Delete (
path As String,
ignoreReadOnly As Boolean
)
public:
static void Delete(
String^ path,
bool ignoreReadOnly
)
static member Delete :
path : string *
ignoreReadOnly : bool -> unit
Parameters
- path
- Type: SystemString
The name of the file to be deleted. Wildcard characters are not supported.
- ignoreReadOnly
- Type: SystemBoolean
overrides the read only FileAttributes of the file.
Remarks If the file to be deleted does not exist, no exception is thrown.
See Also