megatools-rm(1)
===============

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


SYNOPSIS
--------
[verse]
'megatools rm' <remotepaths>...


DESCRIPTION
-----------

Removes files and folders from your Mega.nz account.

*NOTE*: Files and folders are deleted permanently, they are not moved to
/Trash. Folders are removed with everything in them, without asking. Be
careful.

/Root, /Trash and /Shared themselves can't be removed. In a folder shared
with you, write access allows removing your own files, and full access
removing any.

OPTIONS
-------

include::auth-options.txt[]
include::basic-options.txt[]

<remotepaths>::
	One or more remote files or folders to remove.


EXIT STATUS
-----------

0 when all paths were removed, 1 when one of them failed (the others are
still removed).


EXAMPLES
--------

* Remove a folder:
+
------------
$ megatools ls /Root
/Root
/Root/MyNewFolder
$ megatools rm /Root/MyNewFolder
$ megatools ls /Root
/Root
------------


* Empty the rubbish bin:
+
------------
$ megatools ls -n /Trash | sed 's|^|/Trash/|' | xargs -d '\n' -r megatools rm
------------


include::remote-paths.txt[]

include::footer.txt[]
