Be Motivated. There are a medications to help people detox off narcotics- including Suboxone and methadone, but you have to be motivated to do so. You'll need to a supportive environment as well to help you get through the process.
Follow below. Suboxone is the treatment of choice for detox; at another choice would be clonidine.