GOLF(2gg)
π GOLF(2gg) β bestie edition π
okay so you found the GOLF(2gg) page, Development section, and we're about to make directory deletion make sense. no cap. this is the whole vibe, fr fr.
β¨ NAME β¨
delete-dir - (directories)
π PURPOSE π
Delete directory. that's it. that's the whole job. iconic behavior honestly.
πΈ SYNTAX πΈ
delete-dir <directory> [ status <status> ]
π¦ DESCRIPTION π¦
so delete-dir will delete <directory>, and <directory> is a string that can be an absolute path or a relative path. both are valid, bestie. it's giving flexible.
if you use the status clause, then the number <status> means one of these three things:
GG_OKAYif it succeeded πGG_ERR_EXISTif the directory is not empty πGG_ERR_FAILEDfor other errors, and in that case you can use theerrnoclause inget-reqto find the specific reason why π
lowkey important: those status codes are exact. don't be out here guessing.
π EXAMPLES π
delete-dir "/home/user/some_dir"
π SEE ALSO π
- Directories
change-dirchange-modedelete-dirdirectoriesnew-dir- See all documentation
this page is from $VERSION, dated $DATE, and it lives under GOLF(2gg). stay slay, go delete a directory responsibly, and remember: the manual said it, so it's canon. πβ¨π«Ά
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms