Example: ftp_delete_ex

In the following example, the ftp_delete_ex function deletes the ftp_file.txt file from the FTP server for the session ftp.

FTP pFTP;
// Logon to the FTP server
ftp_logon_ex (&pFTP,"FTP", "URL=ftp://ftp.microsoft.com",
     LAST );
// Delete the file from the FTP server
ftp_delete_ex (&pFTP, "Ftp_Delete",
            "PATH=/pub/for_jon/ftp_file.txt",
            ENDITEM,
            LAST );
// Logout from the FTP server
ftp_logout_ex(&pFTP);