Example: ftp_delete

In the following example, the ftp_delete function deletes the ftp_file.txt file from the FTP server.

    // Logon to the FTP server 
    ftp_logon ("FTP", "URL=ftp://ftp.microsoft.com", 
         LAST ); 
    // Delete the file from the FTP server 
    ftp_delete ("Ftp_Delete", // Insert a path to the file you want to delete
         "PATH=/pub/for_jon/ftp_file.txt", 
         LAST ); 
    // Logout from the FTP server 
    ftp_logout();