What happens when you erase an iPhone

When you erase an iPhone, you remove everything on it — all photos, messages, apps, contacts, and settings — and return it to the state it was in when it left the factory. The data is not just hidden or archived; the storage space is wiped and marked as available for new data. This is different from signing out of your Apple ID or turning off iCloud sync, which leaves your data on the device.

You should know upfront: erasing is permanent. Once you start the process, you cannot undo it by plugging the phone into a computer. If you have photos or messages you want to keep, you must back them up before you erase. The most common reasons people erase are selling or giving away the phone, troubleshooting a serious software problem, or starting over after a security breach.

Key Takeaways

  • Back up your iPhone through iCloud or a computer before you erase, or your photos, messages, and other data will be gone permanently.
  • Sign out of your Apple ID before erasing, or the phone will be locked to your account and unusable by anyone else.
  • The erase process takes place in Settings under General, then Transfer or Reset, then Erase All Content and Settings.
  • After erasing, the phone will restart and show the setup screen, as if it were brand new.
  • If you forget your passcode or Apple ID password, you can still erase the phone through iCloud.com or by taking it to an Apple Store.

Back up your data before you erase

The fastest way to back up is through iCloud, Apple's cloud storage service. Open Settings, tap your name at the top, then tap iCloud. Make sure the toggle next to iCloud Backup is turned on (it will be blue). Then tap Back Up Now. The backup will run in the background and may take anywhere from a few minutes to an hour, depending on how much data you have and your internet speed. You can check the progress by going back to Settings > [Your Name] > iCloud > iCloud Backup.

If you do not want to use iCloud, you can back up to a Mac or Windows computer using a USB cable. On a Mac, open Finder, plug in your iPhone, click the device name in the sidebar, then click Back Up Now. On Windows, open iTunes or the Apple Devices app, select your iPhone, and click Back Up. This method stores your backup on your computer's hard drive instead of in the cloud.

Either way, wait for the backup to finish completely before you erase. If the backup is interrupted, you will lose data that was not yet saved.

Sign out of your Apple ID

Before you erase, you must sign out of your Apple ID. If you do not, the phone will be locked to your account after erasing, and no one else will be able to use it — not even you, if you forget your password. This lock is called set up Lock, and it is designed to prevent theft.

To sign out, open Settings, tap your name at the top, scroll to the bottom, and tap Sign Out. You will be asked for your Apple ID password. Enter it. Then choose whether to keep or remove a copy of your iCloud data on the phone. If you are selling the phone, choose Remove. If you are keeping it, choose Keep.

After you sign out, you will no longer see your name at the top of Settings. This means set up Lock is off and the phone is ready to erase.

Erase the iPhone through Settings

Open Settings and tap General. Scroll down and tap Transfer or Reset (the name depends on your iOS version). Tap Erase All Content and Settings. You will see a warning that says this action cannot be undone. Tap Erase again to confirm.

The phone will ask for your passcode or Apple ID password one more time as a final check. Enter it. The iPhone will then begin erasing. You will see a progress bar. Do not turn off the phone or disconnect it from power during this time — if you do, the erase may fail and leave the phone in an unusable state.

The erase usually takes 5 to 15 minutes. When it is finished, the phone will restart and show the Hello screen, the same screen you see when you first turn on a new iPhone. At this point, all your data is gone and the phone is ready to be set up fresh or given to someone else.

Erase through iCloud if you cannot access the phone

If you have forgotten your passcode, forgotten your Apple ID password, or the phone is not responding, you can erase it remotely through iCloud.com. Go to iCloud.com on any computer or another phone, sign in with your Apple ID, and click Find My. Click Devices at the top, then select your iPhone from the list.

Click Erase This Device. You will be asked to confirm. The phone does not need to be turned on or connected to the internet for this to work — iCloud will send the erase command the next time the phone connects. If the phone is already on and connected, the erase will begin when ready.

After the erase is complete through iCloud, the phone will still be locked to your Apple ID. If you want someone else to use it, you will need to sign in to iCloud.com again, go back to Find My, and remove the device from your account. Only then can the new owner set it up with their own Apple ID.

What to do if the erase fails

If the iPhone restarts during the erase or gets stuck on a progress screen, the erase may not have completed. Try again: go back to Settings > General > Transfer or Reset > Erase All Content and Settings. If this does not work after two or three attempts, the phone may have a hardware problem or a serious software issue.

At this point, take the phone to an Apple Store. Bring your ID and proof of purchase if possible. Apple can erase the phone using their own tools and can also help you remove set up Lock if you are the owner but have forgotten your password. There is no charge for this service if the phone is under warranty or if you are the registered owner.

After the erase: what happens next

Once the erase is complete and the phone shows the Hello screen, you have three options. You can set it up as a new phone by tapping through the setup screens and creating a new iCloud account. You can restore from your backup by signing in with your Apple ID during setup — the phone will read all your backed-up data, apps, and settings. Or you can give the phone to someone else, and they can set it up with their own Apple ID.

If you are selling the phone, do not set it up again. Just erase it, sign out of your Apple ID, and hand it over. The new owner will see the Hello screen and can set it up themselves. If you are giving it to a family member, you can either let them set it up, or you can set it up for them and hand them a phone that is ready to use.

Frequently Asked Questions

Will erasing my iPhone remove it from my Apple ID account?

Erasing removes the data from the phone, but the phone itself stays linked to your Apple ID through set up Lock. You must sign out of your Apple ID before erasing if you want the phone to be usable by someone else. After you sign out, erasing will not re-link it to your account.

Can I erase just one app or folder instead of the whole phone?

Yes. You can delete individual apps by pressing and holding them on the home screen and tapping Remove App, or by going to Settings > General > iPhone Storage and tapping the app name, then Delete App. You cannot erase everything except a few apps — it is all or nothing.

What if I erase my phone and then realize I needed something from it?

If you backed up before erasing, you can restore from that backup during setup. If you did not back up, the data is gone. This is why backing up before erasing is the most important step.

How long does it take to erase an iPhone?

The erase itself usually takes 5 to 15 minutes. If you are restoring from a backup afterward, that can take an additional 30 minutes to an hour, depending on how much data you have and your internet speed.

Can someone else erase my iPhone without my permission?

No, not if you have a passcode and set up Lock turned on. They would need your passcode to erase through Settings, or your Apple ID password to erase through iCloud. This is why keeping your passwords find matters.