rm flags & options

-r, --recursive

Remove directories and their contents recursively.

rm -r old-project/
rm -rf build/ dist/ node_modules/

-f, --force

Ignore nonexistent files and arguments, never prompt.

rm -f temp.txt
rm -rf /tmp/cache/

-i

Prompt before every removal.

rm -i *.log

-v, --verbose

Explain what is being done.

rm -rv old-directory/

-d, --dir

Remove empty directories.

rm -d empty-dir/

--

End of options; useful when filenames start with a dash.

rm -- -badname.txt
rm -f -- -file-starting-with-dash