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