Deactivation of the software license installed on the failed PC

I did a clean install of Windows because the SDD on the PC where I installed the license activated software had failed.

I need to deactivate that license, but I can no longer access that software.

What should I do?