This works.
curlPerform(url="sftp://xx.xx.xx.20:22/", postquote="rm /test.txt", ssl.verifypeer = FALSE, userpwd = "user:pass")
So I am assuming that postquote
mimics the dash before the command in curl
. I would love if someone could verify that.