remove_file
remove_file($server,$file_name); - delete a file from FTP
The function accepts parameters as input:
$server – address of an already connected FTP connection$file_name – path to the FTP file to delete
After testing, the function returns the result of its work to the script :
true – successfully deletedfalse – errors occurred during deletion