What to do before you sell or give away your iPhone

6 min read · Updated

Before you sell, trade in or give away an iPhone or iPad, back it up, move your data to the new device, sign out of your Apple Account, and then erase it with Erase All Content and Settings. The sign-out turns off Find My and Activation Lock, so the next owner can use the device. The erase removes everything on the device, and it does not delete your data in iCloud.

An old iPhone holds photos, messages, saved passwords and card details. Before it goes to another person, you move that data to your new device and remove it from the old one. The order of the steps is important. If you erase before you back up, the data on the device is gone. If you delete photos one at a time while you are still signed in, Apple deletes them from iCloud and from your other devices too. If you forget to sign out, Activation Lock stops the next owner from setting up the device. So what do you need to do, and in what order?

This guide gives the steps in the order that Apple recommends. It then explains what to do if the device is no longer with you, and which data a backup does not hold, DotSafe vaults included.

Back up and move your data first

Back up before you change anything. A backup to iCloud or to a computer keeps a copy of the data on the device.

  1. Back up the device to iCloud or to a computer.
  2. Move your data to the new device. If the old device has iOS 11 or later, use Quick Start: put the two devices next to each other and follow the steps on the new device.
  3. If you use DotSafe, turn on sync for each vault that you want to keep. Sync needs Pro. A backup does not hold your vaults, so on Free the erase removes them. Some data is not in your backup has the steps.
  4. If your phone number changes with the new device, add the new number to your Apple Account as a trusted phone number. If you do not, you can lose access to your account.

Do not delete your data one item at a time

When you are signed in to iCloud, a photo, contact or document that you delete on the device is also deleted from iCloud and from all your other devices. Do not delete photos or contacts by hand to clean the old device. Sign out and erase it instead. The erase removes the data from the device only, and your iCloud data stays.

Sign out of your Apple Account

Activation Lock connects the device to your Apple Account while Find My is on. A person who gets the device cannot set it up without your Apple Account password. This protects you if the device is stolen, but it stops a buyer from using a device that you sold. Signing out turns it off.

  1. If you paired an Apple Watch with the iPhone, unpair it.
  2. If you have an AppleCare plan for the device, cancel it or transfer it to the new owner.
  3. Open Settings, tap your name, scroll down and tap Sign Out.
  4. On iOS 26 or later, choose Erase this iPhone or Sign Out But Don't Erase. On iOS 18 or earlier, enter your Apple Account password and tap Turn Off.
  5. If you change to a phone that is not from Apple, deregister iMessage.

Erase the device

Erase All Content and Settings removes all of your data from the device: photos, contacts, apps, music, and the cards in Apple Pay. iCloud, iMessage and FaceTime turn off. Find My and Activation Lock turn off too. Your data in iCloud is not deleted.

  1. Open Settings and tap General.
  2. Tap Transfer or Reset iPhone, then tap Erase All Content and Settings.
  3. Enter your device passcode if it asks for it. If Find My was on, you might need your Apple Account password too.
  4. If the device uses an eSIM, choose to erase the device and the eSIM when it asks.
  5. Tap Erase iPhone.

Take out the SIM card if the device has one. If it has no SIM card, ask your carrier how to move your service to the new owner.

Remove the device from your account

A device in the list of devices on your Apple Account can receive two-factor verification codes. Remove the old device from the list. On another device, open Settings, tap your name and scroll down to the list of devices. Tap the old device, then tap Remove from Account.

If you trade in the device at an Apple Store, know your Apple Account password before you go. If Stolen Device Protection is on, a change of the password at the store can have a one-hour delay.

If you no longer have the device

Do these steps if another person already has the device, or if you lost it.

  1. Ask the new owner to erase the device with the steps above.
  2. If you cannot reach the new owner, or the device was lost or stolen, erase it in Find Devices on iCloud.com.
  3. Remove the device from your list of trusted devices.
  4. Change your Apple Account password. This does not remove data from the device, but it stops the new owner from deleting your data in iCloud.
  5. If you use Apple Pay, remove your cards and passes from that device.
  6. If you change to a phone that is not from Apple, deregister iMessage.

Some data is not in your backup

An app can keep its data out of iCloud Backup and computer backups. Before you erase the old device, open each important app on the new device and check that its data is there.

DotSafe is one of these apps. It keeps its vaults out of iCloud Backup and out of computer backups, because a copy in a backup would be one more place where a vault could be found. So the steps above do not move a DotSafe vault. Sync moves it:

  • With Pro and sync on: before you erase the old device, open each vault and check that Settings, This vault, iCloud shows Up to date. On the new device, sign in with the same Apple Account, with iCloud Keychain on. Install DotSafe and draw the pattern of each vault. DotSafe downloads the thumbnails first, and each full item when you open it.
  • On Free: a vault is only on the device where you made it. The erase removes it, and no backup has a copy. To keep it, get Pro and turn on sync for the vault before you erase the old device.

With sync on, the copy of a vault in your iCloud stays after the erase. Backups and iCloud sync has the details.

Questions

Is a factory reset enough before I sell my iPhone?

Not by itself. Back up first, and sign out of your Apple Account before you erase. If you do not sign out, Activation Lock can stop the new owner from setting up the iPhone.

Does erasing my iPhone delete my photos from iCloud?

No. Erase All Content and Settings removes the data from the device only. Your photos in iCloud stay. But if you delete photos one at a time while you are signed in, they are also deleted from iCloud.

Should I take out the SIM card?

Yes, if the device has one. If it uses an eSIM, choose to erase the eSIM when you erase the device.

What if I already sold my iPhone without erasing it?

Ask the new owner to erase it, or erase it in Find Devices on iCloud.com. Then remove it from your Apple Account and change your Apple Account password.

Does a backup hold the data of every app?

No. An app can keep its data out of iCloud Backup and computer backups. Open each important app on the new device and check its data before you erase the old one. DotSafe vaults move with sync, which needs Pro.

Sources

We checked these pages on 9 November 2026.

Draw it. Keep it safe.

DotSafe is free for 3 vaults. No account, no email, no ads.

Download on the App StoreDownload on the App StoreDotSafe is not available on Android.Scan with your iPhone camera.