mrm(1)

πŸ“¦ version 5.4.2, in nixos 26.05, nixpkgs unstable

πŸ’… mrm(1) β€” the Manta Commands era

okay so real talk, bestie: this is mrm, one of the Manta Commands, and it's basically rm but for your Manta space. iconic behavior, honestly.


✨ NAME ✨

mrm β€” remove objects or directories πŸ—‘οΈβœ¨

πŸŽ€ SYNOPSIS πŸŽ€

mrm [OPTION...] OBJECT...

πŸ¦‹ DESCRIPTION πŸ¦‹

mrm removes each specified object. that's the whole vibe.

but heads up: by default it does not remove directories. nope. not today. if you want dirs gone you gotta say so (spoiler: -r, see below πŸ‘€).

🌸 EXAMPLES 🌸

recursively delete every directory and object chillin' under /:login/stor/tmp? say less:

$ mrm -r ~~/stor/tmp

like literally everything under there. gone. slay but be careful 🫢

πŸ‘‘ OPTIONS πŸ‘‘

  • -a, --account login β€” authenticate as account (that's a login name, bestie).
  • -h, --help β€” print a help message and exit. the classic "what does this do again" move.
  • -i, --insecure β€” this one explicitly allows "insecure" SSL connections and transfers. ngl, by default all SSL connections are attempted to be made secure using the CA certificate bundle installed by default, so this is you choosing chaos πŸ™ˆ
  • -I, --interactive β€” confirm before deleting objects. it asks first. main character energy: consent edition πŸ’…
  • -k, --key fingerprint β€” authenticate using the SSH key described by FINGERPRINT. the key must either be in ~/.ssh or loaded in the SSH agent via ssh-add.
  • -p, --parallel NUM β€” limit concurrent operations to NUM. default is 50. fifty at once, we stay multitasking ✨
  • -r, --recursive β€” remove directories and their contents recursively. this is the one that makes dirs actually deletable, iykyk.
  • --role=ROLE,ROLE,... β€” specify which roles to assume for the request.
  • --user user β€” authenticate as user under account.
  • -u, --url url β€” Manta base URL (such as https://us-central.manta.mnx.io).
  • -v, --verbose β€” print debug output to stderr. repeat the option to increase verbosity (yes, -vv is a thing, see diagnostics πŸ‘‡).

🌈 ENVIRONMENT 🌈

the env vars that stand in for your flags, so you don't have to type them every single time:

  • MANTA_USER β€” in place of -a, --account.
  • MANTA_SUBUSER β€” in place of --user.
  • MANTA_KEY_ID β€” in place of -k, --key.
  • MANTA_ROLE β€” in place of --role.
  • MANTA_URL β€” in place of -u, --url.
  • MANTA_TLS_INSECURE β€” in place of -i, --insecure.

also the shortcut ~~ is equivalent to /:login where :login is the account login name. so cute, so convenient πŸŽ€

⭐ DIAGNOSTICS ⭐

when you use the -v option, diagnostics get sent to stderr in bunyan output format. wanna trace all the info about a request? try this:

$ mrm -vv ~~/stor/foo 2>&1 | bunyan

obsessed with a good trace, fr fr πŸ”₯

πŸ’€ BUGS πŸ’€


lowkey reminder bestie: -r on a big directory is a whole thing. -I exists for a reason 🫢

k bye, this was Manta, August 2018 β€” go forth and delete responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from