ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / FTP functions
  • Deleting files.
FTPDeleteFile (Example)
Deleting files.
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)Ajax This example is used to delete a file from the FTP server.
// Delete a file from the FTP server
nConnection is int
nConnection = FTPConnect("ftp.cdrom.com", "GUEST", "")
IF nConnection = -1 THEN
Error("Unable to establish the connection to the server")
ELSE
IF FTPDeleteFile(nConnection, "Hello.txt") = True THEN
Info("The file was deleted.")
ELSE
Error("The file was not deleted")
END
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help