When you are trying to lose weight...is it easier for you to cut out all unhealthy food or just exercise a few times a week?

I go in phases and right now I prefer exercise and unhealthy food in moderation!