1megatools-rm(1)                                                megatools-rm(1)
2
3
4

NAME

6       megatools rm - Remove files and folders from your Mega.nz account
7

SYNOPSIS

9              megatools rm <remotepaths>...
10              megatools rm /Contacts/<contactemail>
11

DESCRIPTION

13       Removes files and folders from your Mega.nz account.
14
15       NOTE: This command removes folders recursively without asking. Be care‐
16       ful.
17
18       As a special case, by removing a folder under /Contacts, you’re  remov‐
19       ing a <contactemail> from your contacts list.
20

OPTIONS

22       -u <email> , --username <email>
23              Account username (email)
24
25       -p <password> , --password <password>
26              Account password
27
28       --no-ask-password
29              Never ask interactively for a password
30
31       --reload
32              Reload filesystem cache
33
34       --limit-speed <speed>
35              Set  maximum  allowed  upload and download speed in KiB/s.  This
36              option overrides config file settings. 0 means no  limit.   When
37              using  ParallelTransfers  >  1, upload speed limit is applied to
38              each transfer individually.
39
40       --proxy <proxy>
41              Use proxy server to connect to mega.nz.  This  option  overrides
42              config  file settings.  More information can be found in libcurl
43              documentation      at       ⟨https://curl.haxx.se/libcurl/c/CUR
44              LOPT_PROXY.html⟩.  Some acceptable values are:
45
46              • none : Disable proxy if it was enabled in the config file.
47
48              • socks5://localhost:9050 : Local SOCKSv5 proxy server
49
50              • socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS
51                handled by the proxy
52
53       --netif <ifname|ip>
54              Network interface or local IP address used for outgoing  connec‐
55              tions.  You have to specify IP address bound to some of your lo‐
56              cal network interfaces, when specifying an IP address.
57
58       --ip-proto <proto>
59              Which IP protocol to prefer when connecting to mega.nz (v4,  v6,
60              or  any).   This is just an advisory option.  Megatools will re‐
61              solve mega.nz domain, and then use an A or AAAA record based  on
62              the stated preference.
63
64       --config <path>
65              Load configuration from a file
66
67       --ignore-config-file
68              Disable loading .megarc
69
70       --debug [<options>]
71              Enable  debugging of various aspects of the megatools operation.
72              You may enable multiple debugging options separated  by  commas.
73              (eg. --debug api,fs)
74
75              Available options are:
76
77              • http: Dump HTTP request/response details (can be used to debug
78                connection/proxy issues)
79
80              • api: Dump Mega.nz API calls
81
82              • fs: Dump Mega.nz filesystem (may require --reload to  actually
83                print something)
84
85              • cache: Dump cache contents
86
87              • tman: Dump transfer manager events
88
89       --version
90              Show version information
91
92       <remotepaths>
93              One or more remote files or directories to remove.
94
95       <contactemail>
96              Valid email address of a contact you want to remove.
97

EXAMPLES

99       • Remove a folder:
100
101         $ megatools ls /Root
102         /Root
103         /Root/MyNewFolder
104         $ megatools rm /Root/MyNewFolder
105         $ megatools ls /Root
106         /Root
107
108       • Remove contact from your contacts list:
109
110         $ megatools rm /Contacts/some@email.com
111

REMOTE FILESYSTEM

113       Mega.nz  filesystem is represented as a tree of nodes of various types.
114       Nodes are identified by a 8  character  node  handles  (eg.  7Fdi3ZjC).
115       Structure of the filesystem is not encrypted.
116
117       Megatools  maps  node  tree structure to a traditional filesystem paths
118       (eg.  /Root/SomeFile.DAT).
119
120       NOTE: By the nature of Mega.nz storage, several files in the  directory
121       can  have  the  same  name. To allow access to such files, the names of
122       conflicting files are extended by appending dot and their  node  handle
123       like this:
124
125       /Root/conflictingfile
126       /Root/conflictingfile.7Fdi3ZjC
127       /Root/conflictingfile.mEU23aSD
128
129       You need to be aware of several special folders:
130
131       /Root  Writable directory representing the root of the filesystem.
132
133       /Trash Trash  directory  where  Mega.nz web client moves deleted files.
134              This directory is not used by megatools when removing files.
135
136       /Inbox Not sure.
137
138       /Contacts
139              Directory containing subdirectories representing  your  contacts
140              list.  If  you  want  to add contacts to the list, simply create
141              subdirectory named after the contact you want to add.
142
143       /Contacts/<email>
144              Directories representing individual contacts  in  your  contacts
145              list.  These directories contain folders that others shared with
146              you. All shared files are read-only, at the moment.
147

SEE ALSO

149       megatools(1), megarc(5), megatools-df(1),  megatools-dl(1),  megatools-
150       get(1),  megatools-ls(1),  megatools-mkdir(1),  megatools-put(1), mega‐
151       tools-reg(1), megatools-rm(1), megatools-copy(1).
152

MEGATOOLS

154       Part of the megatools(1) suite of commands.
155

BUGS

157       Report bugs  to  megatools@megous.com  ⟨mailto:megatools@megous.com⟩  .
158       Your  message  will  end up in a public archive, so be careful what you
159       say or send.
160

AUTHOR

162       Megatools was written by Ondrej Jirman < megatools@megous.com
163       ⟨mailto:megatools@megous.com⟩ >, 2013-2019.
164
165       Official website is ⟨http://megatools.megous.com⟩.
166
167
168
169                                 22 July 2021                  megatools-rm(1)
Impressum