From a webmd article:
"As the researchers explained, broad-spectrum UVC light kills viruses and bacteria, and it is currently used to decontaminate surgical equipment. But this type of light can cause skin cancer and cataracts, so it's not used in public spaces."
From an NIH research study
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1280232/
"UV radiation from the sun is the primary germicide in the environment. The goal of this study was to estimate inactivation of viruses by solar exposure.
Included in Table
Table66 are estimated times for virus inactivation by midday solar exposure for each location and date. We selected the most UV-sensitive (
Filoviridae) among the families of viruses of potential interest in biodefense (Table
(Table4).4). The estimates of midday virus inactivation in Table
Table66 range from 20 min to well over 1 hour for 1-log inactivation (10% survival). This indicates that some viruses could be inactivated by solar radiation rather quickly, while other, less-UV-sensitive virus types could persist for a long time."
So UV radiation does kill or inactivate viruses. But that is usually in the air and on surfaces. The problem with covid is it is in our bodies and spread by exhaling coughing or sneezing on people very near us or people touching droplets or the virus and then picking their noses, etc.