GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’… 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-mode
  • close-file
  • copy-file
  • delete-file
  • file-position
  • file-storage
  • file-uploading
  • lock-file
  • open-file
  • read-file
  • read-line
  • rename-file
  • stat-file
  • temporary-file
  • uniq-file
  • unlock-file
  • write-file
  • See all documentation

lowkey reminder bestie: this page is from $DATE, running version $VERSION, under the GOLF(2gg) umbrella. go read the other ones, they're all serving πŸ’…πŸ’œβœ¨
πŸ“¦ where this page comes from