Deletes the specified file or directory. An exception is not thrown if the specified file does not exist.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- path
- Type:
System String
The name of the file or directory to be deleted. Wildcard characters are not supported.
Exceptions
| Exception | Condition |
|---|---|
| path is null. | |
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
See Also