4D v15.4

DELETE FOLDER

Home

 
4D v15.4
DELETE FOLDER

DELETE FOLDER 


 

DELETE FOLDER ( folder ) 
Parameter Type   Description
folder  String in Name or full path of the folder to be deleted

The DELETE FOLDER command deletes the folder whose name or full path has been passed in folder.

Only empty folders can be deleted by this command.

  • If you try to delete a folder containing files, the -47 error is generated (The file is already open, or the folder is not empty).
  • If you pass a file path in the folder parameter, or an empty string, or the path to a non-existent folder, the command does nothing and generates a -43 error (File not found).
  • If the folder is locked, the -45 error is generated (The file is locked, or the pathname is not correct).

You can detect these errors through a method installed by the ON ERR CALL command.



See also 

DELETE DOCUMENT

 
PROPERTIES 

Product: 4D
Theme: System Documents
Number: 693

The OK variable is changed by the commandThis command modifies the Error system variable

 
HISTORY 

Created: 4D v6.7

 
ARTICLE USAGE

4D Language Reference ( 4D v15.4)
4D Language Reference ( 4D v15)
4D Language Reference ( 4D v15.3)