If we confess our sins, he is faithful and just to forgive us our sins and to cleanse us from all unrighteousness.
1 John 1:9
Confession is the heart of the matter when dealing with sin when temptation has overtaken us when our fleshly desires win the momentary battle and we indulge in self-gratification. While John speaks of confessing to God, it is also vitally important to have an accountability partner or group to which we can also confess. Look at James 5:16: