Letting Go

How do you let go of something that you have either been doing for a long time or thinking for a long time?

Once you have awareness, do you just decide not to do this thing or believe the thought? Or do you replace it with something new?