Linux

rm

DestructiveRemove

rm -rf <path>

Removes files/dirs; -r recursive, -f force.

Examples

  • rm -f *.tmpForce-delete .tmp

Syntax

rm [-r] [-f] <path>

Before you run it

rm -rf permanently deletes without prompt; verify the path.

Related commands

Check it once more before you run it

Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.

Get it free on the App Store