First, you need to turn off location and Find My iPhone on your device.
Step 1: Tap Settings > Privacy.
Step 2: Continue to select Location Services . Then go to Find iPhone and switch to No to turn off the Find iPhone feature.
Step 1: In the Settings interface, select iTunes and Apple Store . Then select the Apple ID name section.
Step 2: Select Sign Out to remove your Apple ID account from your device.
To delete your entire Apple ID account, you need to immediately access the Apple ID section displayed at the top of Settings. Then scroll down to the bottom and select Sign Out.
Select Sign out of iCloud and Store.
Above are the three simplest ways to delete Apple ID account from iPhone, iPad, applicable to different iOS versions. After successful deletion, you just need to log in to another Apple ID to continue using.
If you don't have an Apple ID or iCloud account, quickly create a new iCloud account directly on your iPhone or iPad without a computer. Please refer to the detailed instructions from Free Download to register for an Apple ID.