PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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).
Versions 21 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
New in version 21
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Example
fDeleteFileWebFolder("images\product.png")
Syntax
<Result> = fDeleteFileWebFolder(<File Name>)
<Result>: Boolean
  • True if the file was deleted.
  • False otherwise.
<File Name>: Character string (with quotes)
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.
  • The 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 (WD230ADMIN.EXE). The Windows account that runs it must have sufficient rights on the target location of deletion.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment