Cancel licence from my previous system

My computer had some problem so I have to reinstall Windows on my computer, and I can’t cancel the licence because the problem on my previous system, please cancel all the licence installed on my previous devices, thanks. @Antoine