MEGARM(1)
π 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.0means no limit. when usingParallelTransfers > 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 athttps://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--reloadto 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 π
- Remove a folder:
$ megals /Root
/Root
/Root/MyNewFolder
$ megarm /Root/MyNewFolder
$ megals /Root
/Root
look at that. folder was there, folder was gone. slay. β¨
- 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
- ubuntu jammy: megatools 1.10.3-1build1 Β· GPL-2+with_exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms