This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
DELETE FOLDER
|
DELETE FOLDER ( folder {; deleteOption} ) | ||||||||
Parameter | Type | Description | ||||||
folder | String |
![]() |
Name or full path of the folder to be deleted | |||||
deleteOption | Longint |
![]() |
Folder deletion option | |||||
The DELETE FOLDER command deletes the folder whose name or full path has been passed in folder.
By default, for security reasons, if you omit the deleteOption parameter, DELETE FOLDER only allows empty folders to be deleted. If you want the command to be able to delete non-empty folders, you must use the deleteOption parameter. In deleteOption, you can pass one of the following constants, found in the "System Documents" theme:
Constant | Type | Value | Comment |
Delete only if empty | Longint | 0 | Deletes folder only when it is empty |
Delete with contents | Longint | 1 | Deletes folder along with everything it contains |
(*) under Windows: -54 (Attempt to open locked file for writing)
under OS X: -45 (The file is locked or the pathname is not correct)
You can intercept these errors using a method installed by the ON ERR CALL command.
Product: 4D
Theme: System Documents
Number:
693
Created: 4D v6.7
Modified: 4D v15 R5
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)