There is actually no way you can delete an Apple ID, but you can deactivate, deauthorize, and sign out of your Apple ID on different devices. Removing devices associated with your Apple ID makes it easier to sign in with a new Apple ID or use your devices without an Apple ID.
This article will show you how to remove your devices associated with your Apple ID both on the web and from your iOS device.
Removing Devices Associated with Your Apple ID on the Web
STEP 1: Go to appleid.apple.com and then sign in with your Apple ID info.
STEP 2: When prompted, type in your two-factor authentication code.
STEP 3: Scroll down to the Devices section.
STEP 4: Click on the device you want to de-associate to your Apple ID, then select Remove.
STEP 5: On the pop-up dialog screen, select Remove this [device name] to confirm.
STEP 6: Repeat Steps 4 and 5 until you have removed all the devices.
Removing Devices Associated with Your Apple ID on iOS
STEP 1: On your iOS device, go to the Settings app.
STEP 2: Tap on the Apple ID banner at the top of the main Settings screen.
STEP 3: Scroll down to the section with your Apple devices.
STEP 4: Tap on a Device.
STEP 5: Tap Remove From Account.
STEP 6: On the next screen, tap on Remove to confirm your action.