GFAL-RM(1)
π GFAL-RM β bestie's guide to deleting files (the manual page)
okay so you found the gfal-rm(1) manual page, welcome, pull up a chair π«Ά this is the one that deletes things. Yes. Deletion. The main character of filesystem operations. Let's get into it.
β¨ NAME β¨
gfal-rm β remove files or directories ποΈβ¨
πΈ SYNOPSIS πΈ
gfal-rm [ OPTION ]... FILE...
π¦ DESCRIPTION π¦
so gfal-rm removes every file or directory you point it at. that's the whole vibe.
but here's the plot twist, bestie: by default it does NOT remove directories. like, it just won't. directories are sacred until you say otherwise. to actually delete a directory you have to pass --recursiv, and when you do, all the directories you gave it get removed along with all their contents. everything. gone. no take-backs. π
the way that --recursiv is spelled in this manual... iconic of them honestly, i'm keeping it exactly as written, no cap.
π OPTIONS π
-h,--helpβ show help about the command. your little "what do i even do" button π₯Ί-V,--versionβ output version information and exit. quick lil flex of what version you're running.-v,--verboseβ verbose mode. repeat up to 3 times for the most verbose mode. yes you can stack it, yes the third one is a lot of words, slay.-D,--definition DEFINITIONβ define properties for gfal2. definitions have the following syntax:"CONFIG_GROUP:KEY=VALUE".-t,--timeout TIMEOUTβ global timeout for the execution of the command. the command gets interrupted if time expires before it finishes. note: a grace period of 30 seconds is given to the global timeout. generous queen π-E,--cert CERTβ user certificate. (this option takes effect only afterX509_USER_PROXYenvironment variable and default/tmp/x509up_uid -u`` location cannot provide a certificate)--key KEYβ user private key. π-4β forces Gfal2 to use IPv4 addresses only. (option valid only for GridFTP protocol)-6β forces Gfal2 to use IPv6 addresses only. (option valid only for GridFTP protocol)-C,--client-info CLIENT_INFOβ provide custom client-side information.--log-file LOG_FILEβ write Gfal2 library logs to the given file location.-r,-R,--recursiveβ remove directories and their contents recursively. β οΈ this is the big one. this is the one that eats directories whole. be so serious when you use it.--dry-runβ print what would have happened without any actual change. the "let me manifest it first" option, obsessed π--just-deleteβ do not perform any check on the file prior to delete. (needed to delete HTTP signed URLs) no vibe check, straight to the deletion.--from-file FROM_FILEβ read SURLs from a file. batch mode energy fr fr.--bulkβ perform bulk deletion. many deletions, one moment, ate. π₯
π EXAMPLES π
here's the tea, in code:
gfal-rm
file:///tmp/test
and the recursive one:
gfal-rm
-r srm://endpoint.cern.ch/path/directory
π FILES π
/etc/gfal2.d/*β all configuration files in this directory affect the behavior of the underlying gfal2. so like... they have main character energy over how gfal2 behaves. iykyk.
π AUTHORS π
the literal geniuses behind this, show them some respect:
- Duarte Meneses <duarte.meneses@cern.ch>
- Adrien Devresse <adrien.devresse@cern.ch>
- Alejandro Alvarez Ayllon <alejandro.alvarez.ayllon@cern.ch>
- Andrea Manzi <andrea.manzi@cern.ch>
- Mihai Patrascoiu <mihai.patrascoiu@cern.ch>
- Joao Lopes <joao.pedro.batista.lopes@cern.ch>
π§ SEE ALSO π§
go read these next, bestie, they're all in the same friend group:
gfal-cat(1), gfal-chmod(1), gfal-copy(1), gfal-ls(1), gfal-mkdir(1), gfal-rename(1), gfal-rm(1), gfal-save(1), gfal-stat(1), gfal-sum(1), gfal-token(1), gfal-xattr(1), gfal-evict(1), gfal-bringonline(1), gfal-archivepoll(1)
okay that's the whole page, mwah π this lil manual is v1.7.1 and it was born in March 2022 β stan a legend that's been holding it down since then. go forth and delete responsibly, bestie, especially with -r. periodt. π«Άβ¨
π¦ where this page comes from
- debian bookworm: gfal2-util-scripts 1.8.0-1 Β· Apache-2.0
- debian trixie: gfal2-util-scripts 1.9.0-2 Β· Apache-2.0
- epel 10: gfal2-util-scripts 1.9.1-1.el10_2 Β· Apache-2.0
- epel 9: gfal2-util-scripts 1.9.1-1.el9 Β· Apache-2.0
- nixos 26.05: python3.13-gfal2-util 1.9.1
- nixos 26.05: python3.14-gfal2-util 1.9.1
- nixpkgs unstable: python3.13-gfal2-util 1.9.1
- nixpkgs unstable: python3.14-gfal2-util 1.9.1
- ubuntu noble: gfal2-util-scripts 1.8.1-1 Β· Apache-2.0
- ubuntu questing: gfal2-util-scripts 1.9.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms