Eu2+ doped alkali or alkali earth iodide scintillators with energy resolutions ≤3% at 662 keV promise the excellent discrimination ability for radioactive isotopes required for homeland security and nuclear non-proliferation applications. To extend their applications to X-ray imaging, such as computed tomography scans, the intense afterglow which delays the response time of such materials is an obstacle that needs to be overcome. However, a clear understanding of the origin of the afterglow and feasible solutions is still lacking. In this work, we present a combined experimental and theoretical combined investigation of the physical insights of codoping-based defect engineering which can reduce the afterglow effectively in