ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Net functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
This function is kept for backward compatibility. It is recommended to use a standard FTP, SSH or SCP server. For more details, see Handling files on an FTP server and Standard FTP functions.
Deletes a file from the FTP (File Transfer Protocol) or RPC (Remote Procedure Call) server powered by WINDEV.
Note: To enable or disable this function on an FTP/RPC server, use NetServerOption.
Example
IDServeurFTP is int
Res is int
IDServeurFTP = NetConnect("148.61.125.245", FTPServer, "GUEST", "")
// Supprimer un fichier sur le serveur
Res = NetEraseFile(IDServeurFTP, "C:\HISTO\ANNEE98.TXT")
IF Res <> 0 THEN
	TraiteErreur() // Procédure de traitement de l'erreur
END
Syntax
<Result> = NetEraseFile(<Connection ID> , <File name>)
<Result>: Integer
Result of the deletion:
  • 0: The file on the server has been deleted
  • 2: The file to be deleted does not exist
  • 5: Access denied
  • 19: Write-protected diskette
<Connection ID>: Integer
Identifier of the connection for the client computer (returned by NetConnect).
<File name>: ANSI character string
Name and full path of the file to delete from the server.
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help