Reinstall Office after reinstallation?

Ph
1

I want to reset my laptop.
I have Windows 10 Pro and Office 2019 or 2016.

If I reset the PC and have everything deleted, Office will also be deleted.

Can I then use my Office and Windows license again or do I have to buy it again?

mi

You can continue to use your previous licenses…