How to reset a licence that was not deactivated first

Hello!

            My computer failed and had to be formatted before I could deactivate my license. How should I proceed to deactivate it and reset it again?

Thank you!

emoji