GOLF(2gg)
π GOLF(2gg) β bestie edition β¨
okay so this is a page from the 2gg manual, and we're talking about delete-file. yeah. the one that deletes files. iconic behavior honestly.
π NAME π
delete-file β it does stuff with (files) ποΈ
πΈ PURPOSE πΈ
It deletes a file. that's it. that's the whole job. she's a one-trick pony and she EATS every time π«Ά
β¨ SYNTAX β¨
delete-file <file location> [ status <status var> ]
π DESCRIPTION π
So the file you point at with <file location>? Gone. Deleted. She said bye π
Now, <file location> can be given either as an absolute path, or relative to the application home directory (peep directories for that, iykyk).
If you specify "status", then the status gets stored into <status var>, and here's the vibe check on what you'll get back:
GG_OKAYβ slay, it worked! π (this is also what you get if the file literally did not exist, which is honestly very chill of her)GG_ERR_DELETEβ nope, it failed π
π EXAMPLES π
delete-file "/home/user/some_file" status st
look at her go. main character energy fr fr π
π¦ SEE ALSO π¦
Files
and the whole squad, no cap:
change-modeclose-filecopy-filedelete-filefile-positionfile-storagefile-uploadinglock-fileopen-fileread-fileread-linerename-filestat-filetemporary-fileuniq-fileunlock-filewrite-fileSee all documentation
lowkey reminder bestie: this page is from$DATE, running version$VERSION, under theGOLF(2gg)umbrella. go read the other ones, they're all serving π πβ¨
π¦ 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