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
Freelance software engineer United Kingdom
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