node-scp-async
node-scp-async copied to clipboard
How to remove a file on remote server
Hi,
how would I remove one or multiple file(s) from a remote folder?
Is this possible with this node?
Thanks
yes, the library does support that. Use these:
-
unlink(remotePath: string)
to remove a file -
rmdir(remotePath: string)
to remove a folder
These API are missing from README, I'm gonna update it