FtpDeleteFileFtpDeleteFile*
*



Contents  *



Index  *Topic Contents
*Previous Topic: FtpCreateDirectory
*Next Topic: FtpFindFirstFile

FtpDeleteFile

BOOL FtpDeleteFile(
    IN HINTERNET hFtpSession,
    IN LPCSTR lpszFileName
);

Deletes a file stored on the FTP server.

hFtpSession
Valid handle to an FTP session. This handle must have been returned from a previous call to InternetConnect.
lpszFileName
Address of a null-terminated string that contains the name of the file to delete on the remote system.

The lpszFile parameter can be either partially or fully qualified file names relative to the current directory. A backslash (\) or forward slash (/) can be used as the directory separator for either name. FtpDeleteFile translates the directory name separators to the appropriate character before they are used.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.