Delete everything in a folder in the terminal~

I had this problem that I had an undeletable file – when I pressed “delete” or “rename”, it would say “file does not exist”
I got rid of one in the terminal, but the other had a “!” in the filename and so terminal thought it was some other command…

Delete everything in a folder in the terminal:

sudo rm -rf ~/Folder/*

`Warning – files deleted this way can’t be recovered.