It deletes a file on the FTP server
Example
<?php
$fName=”test”;
$ftpId = ftp_connect(‘ftp.phpcodez.com’);
$login_result = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);
ftp_delete($ftpId, $fName)
ftp_close($ftpId);
?>
It deletes a file on the FTP server
Example
<?php
$fName=”test”;
$ftpId = ftp_connect(‘ftp.phpcodez.com’);
$login_result = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);
ftp_delete($ftpId, $fName)
ftp_close($ftpId);
?>