VoIP Event Alert

We are getting a license alert in SW about reaching the limit of IP Phones. However when inspecting some of the phones that are licensed, the phones have been removed from CUCM and the license has not been released by Solarwinds. How can I correct this issue?