ftpRemove

ftpRemove ( string server , string login , string password , string path , int _port , string _protocol ) : void

Remove a file on your server by FTP.

Example


ftpRemove("68.258.354.12","admin","sd44f88t4h","/var/www/download/myFile.csv")

Parameters

server

host

login

login of the server

password

password of the server

path

on the server. Use / to separate directories.

_port (optional)

default:21. For SFTP it is generally 22.

_protocol (optional)

default:"ftp"
Possible values:
• "ftp" : Normal FTP protocol
• "sftp" : Transfer over SSH
• "ftps" : Secure FTP or FTP over TLS/SSL (quite rare)