ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / HDFS system
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<hdfsConnection variable>.Delete (Function)
In french: <Variable hdfsConnexion>.Supprime
Deletes a file or directory from a Hadoop server.
Example
// Connection
MyConnection is hdfsConnection
MyConnection.namenode = "MyServer"
MyConnection.User = "Admin"
MyConnection.OpenConnection()
// Delete the file from the server
MyConnection.Delete("/tmp/test.data")
Syntax
<Result> = <Connection>.Delete(<Path> [, <Options>])
<Result>: Boolean
  • True if deleted successfully,
  • False if a problem occurs. ErrorInfo is used to identify the error.
<Connection>: hdfsConnection variable
Name of the hdfsConnection variable that corresponds to connection to the Hadoop server.
<Path>: Character string
Absolute path of file or directory to delete from the Hadoop server. This path is case sensitive.
<Options>: Optional Integer constant
Deletion options:
hdfsDefault
(Default value)
A directory that is not empty will not be deleted.
hdfsRecursiveThe contents of directory and subdirectories are also deleted.
Component: wd300big.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help