How can I remove an apple id
The easy and sure way to start over is to restore the device to factory defaults and wipe everything away. If you don't want that, you'll have to learn how the settings app uses AppleID and decide which ones you want to delete from the device and which you can live with on the device.