detoxification (detox) is clearing alcohol or other drugs from a person's body. it's often done under medical care. medicines may be used to treat symptoms and prevent complications, such as seizures.
detox works best when it takes place in a setting like a hospital. but it may also be done in an outpatient setting. this depends on the severity of the person's physical dependence, what substance the person used, and other medical problems. it usually includes mental health counselling with medical monitoring, supervision, and support.