Thank you for posting this in Microsoft Q&A.
Usually, removing the device from sync scope for Windows 10 or newer /Server 2016 devices will delete the Microsoft Entra device. Adding it back to sync scope will place a new object in "Pending" state. A re-registration of the device is required.
Disable or delete Windows 7/8 devices in your on-premises AD first. You can't use Microsoft Entra Connect to disable or delete Windows 7/8 devices in Microsoft Entra ID. Instead, when you make the change in your on-premises, you must disable/delete in Microsoft Entra ID.
You can refer to below article for the same,
If you are seeing multiple entries for same device in Entra ID then it is called as the stale device.
You can follow below article to remove the stale entry of the device,
https://learn.microsoft.com/en-us/entra/identity/devices/manage-stale-devices
Let me know if you have any further questions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.