To remove your Apple ID from an iPad, you'll need to go into your Settings app and navigate through your Apple ID menus, or use iCloud's website.
You can remove your Apple ID from an Apple Watch by removing its Activation Lock, which will erase your information and unpair it from your iPhone.