Skip to content
zero2vibecodelearn vibe coding

rm

rmdelete. It is one of the commands you type in a terminal, and everything below is produced by running it: the output, the error you get when it goes wrong, and a terminal you can type it into yourself.

What it prints

Run against a small demo project — the same one you get in the terminal below, so the output is what you will see, not an illustration of it.

$ rm notes.txt
$ ls
a.txt app.js downloads log.txt myfolder names.txt old.txt projects script.sh todo.md

What it looks like when it goes wrong

The most common mistake with rm, and the exact message you get. Recognising the wording is most of the fix.

$ rm projects
rm: cannot remove 'projects': Is a directory
Break this command down, word by word →

Common flags

  • -rrecursively (for folders)
  • -fdon't complain if it isn't there

Other commands

Try it yourself

Same files as above. Nothing here can break, and nothing leaves your browser.

Where you use it

Lessons that have you type rm on a real task, rather than read about it.

Written by Mikhail Kuzmitskii