Erasing your iPhone using the Settings app will only erase the specific device on which you are performing the action. This means that any other iPhone, iPad, Mac, or Apple device signed in with the same Apple ID will remain unaffected. The data removal applies exclusively to the selected iPhone, deleting all personal information, settings, and installed apps from that device. However, if iCloud features such as iCloud Photos, iCloud Drive, or Messages in iCloud are enabled, the data stored in iCloud will still be accessible from other devices unless it is manually deleted from iCloud itself.
- Go to Settings > General > Transfer or Reset iPhone.
- Tap Erase All Content and Settings.
- If asked, enter your iPhone passcode or Apple Account password.
- Tap Continue to confirm. If you have an eSIM, you can choose to erase your eSIM or keep it.
Erase iPhone - Apple Support (IN)