FTPClient » Delete
Delete a remote file in the ftp server. Returns true
if it was successful or false
otherwise.
js
client.Delete(remotePath);
Parameters
remotePath
- The remote path to delete.
Example
js
let client = ftp.Connect(
"sftp",
"example.domain.com",
22,
"brad",
"password"
);
if (client.IsConnected()) {
let result = client.Delete('/remote/path/README2.md');
console.log("Deleting file result: " + result);
}