Detoxification may require medication like methadone or suboxone to help patients gradually wean off the drug. Detoxification for heroin must be carried out at a medical facility to ensure the safety of the patient.