rm -f file.txt

Category: File Operations

rm -f file.txt

Force remove without prompting, ignore nonexistent

Deletes a file without asking for confirmation and ignores errors if the file doesn't exist. -f means 'force'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.