What gets deleted and what stays behind

When you delete something on an iPhone — a photo, a message, an app — the data doesn't vanish immediately. Instead, iOS marks that space as available to be overwritten. Until your phone writes new data on top of it, the old data technically remains on your device, though you can't see it through normal means. This matters if you're selling your phone, giving it away, or concerned about someone with physical access recovering deleted files.

Different deletion methods leave different traces. Deleting a photo from your Photos app and emptying Recently Deleted is faster but less thorough than a full factory reset. Knowing which method matches your situation — whether you're clearing out old files or preparing to hand over your phone — helps you choose the right approach.

Key Takeaways

  • Deleted photos, messages, and files stay recoverable for 30 days in Recently Deleted folders before iOS permanently removes them.
  • A factory reset erases all data but doesn't overwrite it, so recovery tools could still retrieve files unless you use Erase All Content and Settings with a strong password.
  • Signing out of iCloud before erasing prevents your Apple ID from locking the phone, which would make it unusable to the next owner.
  • For maximum security before selling or giving away your phone, use Erase All Content and Settings, wait for the process to finish, and then set it up as new rather than restoring from backup.

Deleting individual files and using Recently Deleted

The simplest way to remove a single photo, message, or file is to find it in its app and delete it. In Photos, press and hold the image, tap Delete, then confirm. In Messages, swipe left on a conversation and tap Delete. In Mail, swipe left on an email and tap Trash. The item moves to a Recently Deleted folder specific to that app.

Recently Deleted folders hold your data for 30 days before iOS removes it permanently. During those 30 days, you can recover the item by opening Recently Deleted, selecting it, and tapping Recover. After 30 days pass, the space becomes available for new data. If you want to delete something immediately without waiting, open Recently Deleted, tap Edit, select the item, and tap Delete. This removes it from the recovery folder but doesn't may provide it's unrecoverable with specialized tools.

Removing apps and their stored data

Deleting an app from your home screen (long-press, tap Remove App) only removes the icon. The app and its data remain on your phone. To fully remove an app, go to Settings > General > iPhone Storage, find the app, tap it, and select Delete App. iOS will ask if you want to keep or delete the app's data — choose Delete to remove both.

Some apps store data in iCloud as well as on your phone. Deleting the app from your iPhone doesn't remove its iCloud data. If you want to erase everything associated with an app, check its settings within the app itself — many have a "Clear Data" or "Reset" option. For apps like Mail or Notes that sync across devices, you may also need to delete the data from iCloud.com or from your other devices.

Clearing Safari history, cookies, and cache

Safari stores your browsing history, cookies, and cached website data. To clear it, go to Settings > Safari > Clear History and Website Data. Choose a time range — Last Hour, Today, Last Week, Last Month, or All Time. Select what to delete: History and Website Data is checked by default, but you can also check Cookies and Site Data separately. Tap Clear History and Website Data to confirm.

Clearing Safari data removes what you've browsed but doesn't delete saved passwords or autofill information. If you want to remove those, go to Settings > Passwords and Autofill and delete entries one by one. Note that clearing Safari history on your iPhone doesn't affect Safari on your Mac or iPad unless you have iCloud Keychain enabled — in that case, the history syncs across devices.

Factory reset: Erase All Content and Settings

A factory reset removes all apps, photos, messages, and settings from your iPhone. Go to Settings > General > Transfer or Reset > Erase All Content and Settings. iOS will ask you to enter your Apple ID password and, if you have one, your Screen Time passcode. The phone will then erase everything and restart as if it came from the factory.

This process takes 5 to 15 minutes depending on how much data is on your phone. During the reset, do not turn off your phone or disconnect it from power. When it finishes, you'll see the setup screen. At this point, you can set up the phone as new, restore from a backup, or sign in with an Apple ID. If you're giving the phone to someone else, set it up as new and let them sign in with their own Apple ID.

A factory reset marks the space as available for new data but doesn't overwrite existing files. Someone with specialized recovery software could potentially retrieve deleted files. If you need stronger protection — for instance, before selling a phone with sensitive work data — you can add a layer of security by enabling a strong password before erasing. iOS will then encrypt the erased data, making recovery much harder.

Signing out of iCloud before erasing

Before you erase your phone, sign out of iCloud. Go to Settings > [Your Name] > Sign Out. iOS will ask whether to keep or delete iCloud data on your device — choose Delete. Then enter your Apple ID password to confirm. This step is crucial if you're giving the phone to someone else, because if you don't sign out, Activation Lock will prevent them from using the phone without your Apple ID credentials.

If you forget to sign out before erasing, the phone will still have Activation Lock enabled. The new owner will see a screen asking for the previous Apple ID. You can remove Activation Lock by going to iCloud.com, signing in, opening Find My, selecting the device, and choosing Remove. But it's simpler to sign out before erasing so the new owner can set up the phone immediately with their own account.

Preparing your phone before giving it away or selling it

If you're handing over your iPhone, follow this order: First, back up anything you want to keep to iCloud or your computer. Second, sign out of iCloud (Settings > [Your Name] > Sign Out). Third, go to Settings > General > Transfer or Reset > Erase All Content and Settings and complete the reset. Fourth, when the setup screen appears, do not restore from your backup — set it up as new. This ensures the new owner starts with a clean phone and their own Apple ID.

After erasing, the phone will ask for a Wi-Fi network and Apple ID. Let the new owner complete this step themselves so they can sign in with their own account. If you set up the phone with your Apple ID or restore your backup, you'll transfer your accounts, photos, and messages to their device. Before handing it over, power it off and let the new owner turn it on and set it up.

Frequently Asked Questions

Can someone recover photos I deleted and emptied from Recently Deleted?

After you empty Recently Deleted, the photos are no longer visible through normal iPhone tools. However, specialized recovery software could potentially retrieve them until iOS overwrites that space with new data. A factory reset makes recovery harder but not impossible. For maximum security, use Erase All Content and Settings with a strong password enabled before erasing.

What's the difference between signing out of iCloud and erasing my phone?

Signing out removes your Apple ID from the phone but leaves all your data intact. Erasing removes all data and apps. You should do both before giving away your phone: sign out first so Activation Lock doesn't lock the new owner out, then erase so they don't inherit your photos and messages.

If I restore from a backup after erasing, will my deleted files come back?

Yes. A backup includes everything that was on your phone when you made it, including files you later deleted. If you erase and then restore from an old backup, deleted photos and messages will reappear. To avoid this, set up your phone as new instead of restoring from backup.

Does turning off iCloud backup before erasing make deletion more secure?

Turning off iCloud backup stops new backups from being created, but it doesn't delete backups already stored in iCloud. To remove old backups, go to iCloud.com, sign in, open Account Settings > iCloud > Manage Storage > Backups, and delete the backup for that device. Then erase the phone itself.

How long does it take to erase all content and settings?

The process typically takes 5 to 15 minutes depending on how much data is on your phone and how fast your connection is. Larger phones with more photos and apps take longer. Keep your phone plugged in and connected to Wi-Fi during the reset, and don't interrupt it by turning off the phone or closing the Settings app.