I have a script that creates a cpanel FTP account like so:
$url = "https://$user:$pass@$domain:2083/frontend/$skin/ftp/doaddftp.html?";
$url = $url . "login=$fuser&password=$fpass&homedir=$fhomedir"a=$fquota";
$result = @file_get_contents($url);
I am trying to find out what the URL would be to delete the FTP account. I see the “doaddftp.html” and GET parameters. I assume there is a similar way to remove an FTP account.
Anyone know what the URL would be?
The following link will be useful for you
http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiFtp#Ftp::delftp
Note:Delete an FTP account. This function is only available in cPanel 11.27.x and later.