ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
fDeleteFileWebFolder (Function)
In french: fSupprimeFichierRépertoireWeb
Deletes an image file from the "_WEB" directory of the application (or from one of its sub-directories).
Caution: To use this function, "Allow fCopyFileWebFolder and fDeleteFichierWebFolder" must be checked in the WEBDEV administrator (option found in the "Advanced" tab of the WEBDEV administrator).
Example
fDeleteFileWebFolder("images\product.png")
Syntax
<Result> = fDeleteFileWebFolder(<File name>)
<Result>: Boolean
  • True if the file was deleted.
  • False otherwise.
<File name>: Character string
Name of the file to delete. This parameter can be:
  • A name of file with its full path.
  • A name of file with its path relative to the "_WEB" directory of the application. The "_WEB" directory of the application is returned by fWebDir.
Remarks
  • The function deletes a single file at a time.
  • Wildcard characters (*,?) are not allowed in the file name.
  • Only the image files can be deleted. The following extensions are accepted : jpg, jpeg, png, gif, bmp, tif, tiff and svg.
Caution: The deletion is taken into account by the WEBDEV administrator on the server (WD290ADMIN.EXE). The Windows account that runs it must have sufficient rights on the target location of deletion.
Component: wd290page.dll
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 07/22/2022

Send a report | Local help