Hi, it depends on how you want to do this:
- If on Mac OS (Big Sur in my instance), go to the Apple menu > System Preferences > Apple ID and on the lefthand pane, look for the device in question. Press on the device in question and on the righthand pane, there is a Remove option.
- On IOS devices, go into Settings > Apple ID > and scroll down to the devices part, go into the one in question and therein should be red Remove from account option.
I hope this helps.