Of course, if a dog barks, and you feed him, then does it some more, and you feed him again, then suddenly you stop feeding him, he will continue to bark.
--- Do you want ants? Because that's how you get ants.
Takes a while. It's called "extinction." (Of the behavior, not the species.) Funny thing: If you rewarded the behavior on a random, intermittent schedule, then it would be harder to extinguish than if you rewarded it all the time. This is why gambling is so powerfully addictive.