Delete dir

Purpose: Delete directory.

 delete-dir <directory> [ status <status> ]

delete-dir will delete <directory>, which is a string that may be an absolute or relative path.

If "status" clause is used, then number <status> is GG_OKAY if succeeded, GG_ERR_EXIST if directory is not empty, or GG_ERR_FAILED for other errors (in which case you can use "errno" clause in get-req to find the specific reason why).
Examples
 delete-dir "/home/user/some_dir"

See also
Directories
change-dir  
change-mode  
delete-dir  
new-dir  
See all
documentation


Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.