This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
folder.delete( )
|
folder.delete ( {option} ) | ||||||||
Parameter | Type | Description | ||||||
option | Longint |
![]() |
Folder deletion option | |||||
The folder.delete( ) method deletes the folder.
By default, for security reasons, if you omit the option parameter, folder.delete( ) only allows empty folders to be deleted. If you want the command to be able to delete folders that are not empty, you must use the option parameter with one of the following constants:
Constant | Value | Comment |
Delete only if empty | 0 | Deletes folder only when it is empty |
Delete with contents | 1 | Deletes folder along with everything it contains |
When Delete only if empty is passed or if you omit the option parameter:
When Delete with contents is passed:
Product: 4D
Theme: File and Folder
Created: 4D v17 R5
4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)