Under the devices section of your Apple ID, select the device that you wish to remove, and tap on "Remove Device" to remove the account.