About license in theme forest (newbie)

I have bought a theme in themeforest.
I asked about the license of the theme.
If I use the theme and its license to develop website in hosting A.
Then when the website is done,
I want to move the website in hosting A to hosting B along with its license. Then theme and license in hosting A I delete.
Whether the license can still be used despite switching hosting or domain?

Yes it’s fine as long as you fully delete it from the first instance.

Be aware if it’s a WP theme and you register plugins then it can be tricky to deregister these sometimes and you may need help from the author