You can use the rm command to remove (delete) files. For example, if you want to remove the file dogs.txt, you can run the rm dogs.txt command:
elliot@ubuntu-linux:~$ ls
apple.txt banana.txt carrot.txt dogs.txt Desktop dir1 small
elliot@ubuntu-linux:~$ rm dogs.txt
elliot@ubuntu-linux:~$ ls
apple.txt banana.txt carrot.txt Desktop dir1 small
You can also remove multiple files at once. For example, you can remove the three files apple.txt, banana.txt, and carrot.txt by running the rm apple.txt banana.txt carrot.txt command:
elliot@ubuntu-linux:~$ rm apple.txt banana.txt carrot.txt
elliot@ubuntu-linux:~$ ls
Desktop dir1 small
elliot@ubuntu-linux:~$