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
Deletes a directory from a disk.
Remarks:
  • The user must have the rights to delete a directory.
  • A directory currently browsed by fDir or fListFile cannot be deleted.
Syntax
<Result> = fRemoveDir(<Directory to delete> [, <Deletion indicator>])
<Result>: Boolean
  • True if the directory was deleted,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Directory to delete>: Character string
Name and full (or relative) path of the directory to delete. A UNC path can be used. The wildcard characters (*,?) are ignored. This directory name may (or may not) end with "\".
iPhone/iPadIOS WidgetMac Catalyst Only the directories found in the directory of the application can be handled.
<Deletion indicator>: Optional constant
frReadOnlyAlso deletes the read-only files. If this constant is not specified, the function will return False if read-only files must be deleted.
frRecursiveThe contents of the directory and subdirectories are also deleted. If this constant is not specified, the directory must be empty in order to be deleted.
frToRecycleBinSends the directory to the Windows bin instead of deleting it.
Universal Windows 10 AppAndroidAndroid Widget This constant is not available.

<Deletion indicator> is empty by default. None of these options is selected.
Remarks
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Exemplo Remover Diretorio Ftp
s_arquivo_endereco_remoto is string=SAI_Diretorio_Remoto+TABLE_remoto.COL_nome_arquivo
IF YesNo("Deseja Eliminar Arquivo servidor:["+s_arquivo_endereco_remoto) THEN
n_delela_arquivo_Ftp is int=FTPDeleteFile(n_conexao,s_arquivo_endereco_remoto)
arquivo_mostra_remoto()
END
De matos AMARILDO
08 Jan. 2016

Last update: 08/23/2022

Send a report | Local help