remove a file

$ rm filename.txt

remove a directory or folder

$ rm -rf folder name