linux remove files in directory code example Example 1: how to remove file from directory in linux rm /home/harry/ascii.txt Example 2: terminal delete fle rm MyFile.rtf