How do you stop yourself from always buying pasta and cheze in the middle of your keto?

I get these fucking cravings for pasta dammit.
I just ate over 2400kcal of this crap and now I threw all the cheeze and pasta I bought out.

But the craving shall return.