Ibogaine does this. Unfortunately, patients develop an addiction for Ibogaine, for which there is no cure.
I doubt that anyone would ever get addicted to ibogaine. From what I recall, it is used in some tribal initiation ordeals. It seems to produce the equivalent of a memory-core dump--vivid, intense, recollection of one's entire life---and those who have taken it report never wanting to have anything to do with it again.
There isn't a good hypothesis as to why it seems to allow some people to go cold-turkey off long-established cocaine or heroin habits without withdrawl symptoms, but there are lots of reports of it having that effect.