This can take place in an inpatient or outpatient facility, depending on the severity of the addiction and the presence of any other medical or mental illnesses. Generally, the more severe your addiction and/or having a co-occurring disorder indicates a preference for an inpatient detox program.