ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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, make sure the "Allow fCopyFileWebFolder and fDeleteFichierWebFolder" option is checked 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 correspond to:
  • 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 image files can be deleted. Accepted extensions are: jpg, jpeg, png, gif, bmp, tif, tiff and svg.
Note: Deletion is handled by the WEBDEV administrator on the server (WD300ADMIN.EXE). The Windows account that runs it must have sufficient rights on the target location of deletion.
Component: wd300page.dll
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 09/17/2024

Send a report | Local help