Cannot trash a file?
If you've put the file in your own Trash, you got the path wrong in step 2:

rm -rf ~/.Trash/*


or (because there might be something wrong with the file permissions)

sudo rm -rf ~/.Trash/*