A healthcare professional may prescribe medications to lessen the impact of withdrawal symptoms and cravings during heroin detox. The kind of medication is dependent on the patient and withdrawal symptoms.