Linux FAQ: How do I delete files (remove files) on a Unix or Linux system?
The Linux "rm" command is used to remove files and directories. (As its name implies, this is a dangerous command, so be careful.)
Let's take a look at some rm command examples, starting from easy examples to more complicated examples.
Unix/Linux rm command examples - Deleting files
In its most basic use, the Linux rm command can be used to remove one file, like this: