How to move computer account to another tenant

After migrating accounts and mailboxes to the target tenant, the computer is still connected to the source tenant Azure AD. How to handle this?