MEGARM(1)

πŸ“¦ version 1.10.3, in ubuntu jammy

πŸ’– MEGARM(1) β€” aka megarm, the lil command that YEETS files off ur Mega.nz πŸ’–

okay bestie, sit down, grab ur strawberry milk πŸ“, because we're talking about megarm β€” a member of the Megatools Manual family, and honestly? it's giving "delete button but make it ✨elegant✨". iykyk.


✨ NAME ✨

megarm β€” Remove files and folders from your Mega.nz account πŸ—‘οΈπŸ’…


🌸 SYNOPSIS 🌸

megarm <remotepaths>...
megarm /Contacts/<contactemail>

periodt. that's the whole vibe. πŸ’œ


πŸ¦‹ DESCRIPTION πŸ¦‹

It removes files and folders from your Mega.nz account. simple as that, no cap. ✨

NOTE: This command removes folders recursively without asking. Be careful. 😭 like, it will NOT send u a "u sure bestie??" text. it just GOES. be careful fr fr.

As a special case, by removing a folder under /Contacts, you're removing a <contactemail> from your contacts list. so it's not just files, it's also ur social life. iconic behavior honestly. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -u <email>, --username <email> β€” account username (it's ur email, bestie) πŸ“§
  • -p <password>, --password <password> β€” account password πŸ”
  • --no-ask-password β€” never ask interactively for a password. it will NOT pop up and be like "hey girlie what's the password". nope. πŸ™ˆ
  • --reload β€” reload filesystem cache. refresh ur whole vibe. πŸ”„
  • --limit-speed <speed> β€” set maximum allowed upload and download speed in KiB/s. this option overrides config file settings. 0 means no limit. when using ParallelTransfers > 1, upload speed limit is applied to each transfer individually. (so yes, the limit is per-transfer, not a group hug) πŸƒβ€β™€οΈπŸ’¨
  • --proxy <proxy> β€” use proxy server to connect to mega.nz. this option overrides config file settings. more information can be found in libcurl documentation at https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html. some acceptable values are:
    • none : disable proxy if it was enabled in the config file. 🚫
    • socks5://localhost:9050 : local SOCKSv5 proxy server 🧦
    • socks5h://localhost:9050 : local SOCKSv5 proxy server with DNS handled by the proxy 🧦✨
  • --config <path> β€” load configuration from a file πŸ“
  • --ignore-config-file β€” disable loading .megarc πŸ™…β€β™€οΈ
  • --debug [<options>] β€” enable debugging of various aspects of the megatools operation. you may enable multiple debugging options separated by commas. (eg. --debug api,fs). available options are:
    • http: Dump HTTP request/response details (can be used to debug connection/proxy issues) 🌐
    • api: Dump Mega.nz API calls πŸ“‘
    • fs: Dump Mega.nz filesystem (may require --reload to actually print something) 🌳
    • cache: Dump cache contents πŸ—ƒοΈ
    • tman: Dump transfer manager events 🚚
  • --version β€” show version information 🏷️
  • <remotepaths> β€” one or more remote files or directories to remove. πŸ—‘οΈ
  • <contactemail> β€” valid email address of a contact you want to remove. πŸ’”

🌈 EXAMPLES 🌈

  1. Remove a folder:
$ megals /Root
/Root
/Root/MyNewFolder
$ megarm /Root/MyNewFolder
$ megals /Root
/Root

look at that. folder was there, folder was gone. slay. ✨

  1. Remove contact from your contacts list:
$ megarm /Contacts/some@email.com

bye bestie πŸ‘‹πŸ’” (affectionate)


πŸŽ€ REMOTE FILESYSTEM πŸŽ€

Mega.nz filesystem is represented as a tree of nodes of various types. Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC). Structure of the filesystem is not encrypted. πŸ”“

Megatools maps node tree structure to a traditional filesystem paths (eg. /Root/SomeFile.DAT). πŸ—‚οΈ

NOTE: By the nature of Mega.nz storage, several files in the directory can have the same name. To allow access to such files, the names of conflicting files are extended by appending dot and their node handle like this:
/Root/conflictingfile
/Root/conflictingfile.7Fdi3ZjC
/Root/conflictingfile.mEU23aSD

(so if u ever see a weird 8-character suffix, that's not a typo, that's the filesystem being quirky πŸ’€)

You need to be aware of several special folders:

  • /Root β€” writable directory representing the root of the filesystem. 🌳
  • /Trash β€” trash directory where Mega.nz web client moves deleted files. This directory is not used by megatools when removing files. πŸ—‘οΈ (ngl kind of rude of megatools but ok)
  • /Inbox β€” not sure. πŸ€·β€β™€οΈ (the manpage is genuinely out here saying "not sure" and honestly? respect the honesty.)
  • /Contacts β€” directory containing subdirectories representing your contacts list. If you want to add contacts to the list, simply create subdirectory named after the contact you want to add. πŸ‘―
  • /Contacts/<email> β€” directories representing individual contacts in your contacts list. These directories contain folders that others shared with you. All shared files are read-only, at the moment. πŸ”’ (read-only, at the moment β€” the "at the moment" is doing a lot of heavy lifting there bestie)

πŸ”₯ SEE ALSO πŸ”₯

megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1), megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).

(yes megarm(1) is listed in its own SEE ALSO. main character energy. πŸ’…)


πŸ‘‘ MEGATOOLS πŸ‘‘

Part of the megatools(7) suite. 🫢


πŸ’€ BUGS πŸ’€

Report bugs at https://github.com/megous/megatools or megous@megous.com. πŸ› (please be nice to them, they're doing their best)


⭐ AUTHOR ⭐

Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.

Official website is http://megatools.megous.com. 🌐


and that's the whole page bestie!! this was megatools 1.10.2, dated 04/15/2020 β€” yes, the date is older than ur fave playlist, but she's still iconic πŸ’–βœ¨ go forth and megarm responsibly (or don't, but like, remember the recursive thing 😭). mwah πŸ«ΆπŸ’…

πŸ“¦ where this page comes from