rm

Updated: 15 April 2026

rm – remove files or directories.

Delete file, skip warning if file doesn’t exist

rm -f app.js

Empty a directory

rm -r /my/directory/*

Prompt, interactively, before removal of a file

rm -i ~/project-savings.md

Leave a comment