Home | Sign in | English EN
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Deletes a directory from the Mobile Device (Pocket PC) connected to the current computer.
Remark: The directory can be deleted only if the following conditions are fulfilled:
  • the directory is empty (except if the ceRecursive constant is specified).
  • the user has sufficient rights to delete a directory.
  • a connection is established between the current computer and the Mobile Device (ceConnect).
// Delete a directory from the Mobile device connected to the current computer
ResDelete = ceRemoveDir("\MyFile\MyImages")
// Has a problem occurred?
IF ResDelete = False THEN Error(ErrorInfo())
<Result> = ceRemoveDir(<Path of directory to delete> [, <Deletion indicator>])
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. If an error occurs, you can get the details of the error with ErrorInfo.
<Path of directory to delete>: Character string (with quotes)
Full path of the directory that must be deleted from the Mobile Device connected to the current computer.
<Deletion indicator>: Optional constant
Deletion options:
ceReadOnlyAlso erases the read-only files and/or directories. If this constant is not specified, the function will return False if read-only files must be deleted.
ceRecursiveThe contents of directory and sub-directories are also deleted. If this constant is not specified, the directory must be empty in order to be deleted.

<Deletion indicator> is empty by default. No option is selected.
ceRemoveDir and fRemoveDir have equivalent operating modes.
The only difference is:
  • ceRemoveDir deletes a directory found on the Mobile Device from a WINDEV application.
  • fRemoveDir deletes a directory found on the Mobile Device only from a WINDEV Mobile application.
Component: wd260ce.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment