Let me clear my head off with The Secret's teaching:
You have the ability to command anything.
Here is something you can say to command that negative thoughts leave you:
"Be gone! You have no part in me. I am Spirit. I harbor only the good and perfect thoughts of Spirit."
The Secret - Daily Teaching
Never were truer words spoken.