Context. Within dense interstellar clouds, from their periphery to regions deep inside, ice mantles on dust grains are exposed to cosmic-ray irradiation. Various swift ions contribute from protons to iron in the keV to TeV energy range. Observations show that in some lines of sight condensed CO molecules are an important component of the ice. Aims. We irradiate CO ices with Ni ions of relatively high energy (50 and 537 MeV) to simulate the effects produced by fast heavy cosmic-ray ions in interstellar grain mantles. Methods. CO gas is condensed on a CsI substrate at 13 K and irradiated by 50 MeV 58 Ni 13+ and 537 MeV 64 Ni 24+ ions up to a final fluence of ≈1 × 10 13 cm −2 , at a flux of 1 × 10 9 cm −2 s −1 . The sputtering yields, the destruction rate of CO, and the rate of formation of new molecular species are measured in situ by Fourier transform infrared spectroscopy (FTIR). Results. The measured CO destruction cross-sections and sputtering yields induced by Ni ions are, respectively, (i) for 50 MeV, σ d = 1.0 × 10 −13 cm 2 and Y = 7 × 10 4 molecules/impact; (ii) for 537 MeV, σ d = 3.0 × 10 −14 cm 2 and Y = 5.85 × 10 4 molecules/impact. Based on the present and previous results, the desorption rates induced by H, Ni, and Fe ions are estimated for a wide range of energies. The contribution of the heavy ions is found to dominate over that of protons in the interstellar medium.