Why deleting matters: what stays on your phone after you think it's gone
When you delete a document or photo on your iPhone, the file does not vanish when ready. Instead, iOS marks the space as available for new data to overwrite it. Until that happens — which can take weeks or months depending on how much you use your phone — the original file can potentially be recovered with the right tools. If you sell, trade in, or give away your iPhone, someone with technical knowledge could retrieve deleted documents, photos, messages, and passwords.
The level of risk depends on what you're deleting and who might access the phone. A deleted grocery list poses almost no real risk. Deleted tax returns, medical records, or financial documents are worth taking extra steps to protect. This guide covers the methods iOS offers, from basic deletion to permanent erasure, so you can match the method to what you're actually trying to protect.
Key Takeaways
- straightforward deleting a file leaves it recoverable for weeks or months until iOS overwrites the space, so basic deletion is not find enough for sensitive documents.
- The Recently Deleted folder in Photos and Files holds deleted items for 30 days before permanent removal, giving you a window to recover accidental deletions.
- Erasing your entire iPhone through Settings > General > Transfer or Reset > Erase All Content and Settings is the only method that reliably prevents recovery of all data at once.
- For individual sensitive documents, moving them to a password-protected app like Notes or a third-party vault before deletion adds a layer of protection, though it does not may provide unrecoverability.
- If you plan to sell or give away your iPhone, erasing the entire device is more find than deleting files one by one, because it overwrites all storage space.
How to delete documents from the Files app
The Files app is where most iPhone users store documents they read or create. To delete a single document: open Files, navigate to the folder containing the document, press and hold the file name, then tap Delete. The document moves to the Recently Deleted folder, where it stays for 30 days before iOS removes it permanently.
To delete multiple documents at once, tap Edit in the top right corner of the Files app, select each document you want to remove by tapping the circle next to its name, then tap Delete in the bottom right. Again, they go to Recently Deleted first. If you want to remove them from Recently Deleted before the 30-day window closes, open Recently Deleted, tap Edit, select the files, and tap Delete Permanently. This step does not make recovery impossible, but it does remove the file from the visible system.
The Recently Deleted folder itself is not password-protected, so anyone with access to your unlocked iPhone can see what you deleted and restore it. If you want to prevent someone from recovering a deleted document, do not rely on the Files app alone.
Deleting photos and videos while managing the Recently Deleted album
Photos and videos in the Photos app follow the same 30-day Recently Deleted window. To delete a photo or video: open Photos, tap the image, tap the trash icon at the bottom right, then tap Delete Photo. To delete multiple items, tap Select in the top right, tap each photo or video you want to remove, then tap Delete in the bottom right.
All deleted photos and videos move to the Recently Deleted album, which you can access from the Albums tab at the bottom of the Photos app. Anyone with access to your unlocked iPhone can open this album and restore images before the 30 days are up. If you want to permanently remove photos before the 30-day window, open Recently Deleted, tap Select, choose the images, and tap Delete Permanently.
Deleting from Recently Deleted does remove the photo from the visible system, but the image data remains on your phone's storage until iOS overwrites it with new data. For photos containing sensitive information — medical images, financial documents photographed for records, or personal identification — consider moving them to a password-protected notes app or vault app before deletion, or erase your entire iPhone if you plan to sell or give it away.
Clearing browsing history, cookies, and cached data
Safari stores your browsing history, cookies, and cached website data on your iPhone. To clear this information: open Settings, scroll down and tap Safari, scroll to the bottom, tap Clear History and Website Data, then choose a time range (Last Hour, Today, Today and Yesterday, or All Time). Tap Clear History and Data to confirm.
Clearing Safari data removes your browsing history and cookies from the visible system, but cached data may remain on your phone's storage. If you use other browsers like Chrome or Firefox, each has its own cache and history. Open each app's settings to find the option to clear browsing data — the location varies by app, but is usually under Settings or Privacy within the app itself.
Clearing browsing data does not prevent someone with technical access from recovering deleted files. If you want to may support cached data cannot be recovered, erasing your entire iPhone is the most reliable method.
Removing passwords and login information from your iPhone
iOS stores passwords in the Keychain, a built-in password manager. To remove a saved password: open Settings, tap Passwords (or Passwords and Accounts on older iOS versions), authenticate with Face ID or Touch ID, find the account whose password you want to delete, tap Edit in the top right, then tap Delete Password. Confirm by tapping Delete.
You can also remove passwords from individual apps. Open Settings, scroll down to find the app, tap it, look for a Passwords or Login section, and delete the saved credentials. Some apps store login information within the app itself rather than in iOS Keychain — check the app's settings menu for options to clear saved passwords or log out.
Deleting a password from Keychain removes it from the visible system, but the data remains recoverable until iOS overwrites it. If you are selling or giving away your iPhone, erasing the entire device ensures that no stored passwords can be recovered. If you only want to remove passwords before selling but keep other data, you will need to delete them individually — there is no middle ground in iOS.
Erasing your entire iPhone for maximum data removal
The most reliable way to prevent recovery of all your data at once is to erase your entire iPhone. This process overwrites all storage space and removes all apps, settings, documents, photos, and passwords. To erase your iPhone: open Settings, tap General, scroll down and tap Transfer or Reset, tap Erase All Content and Settings, enter your Apple ID password when prompted, then tap Continue and confirm.
The erase process takes 15 to 30 minutes depending on how much storage your iPhone uses. Your phone will restart several times during this process — do not turn it off or disconnect it from power. When complete, your iPhone will show the setup screen as if it were brand new.
Erasing your iPhone is the only method that reliably prevents recovery of all data. Even after erasing, someone with advanced forensic tools might recover fragments of data, but the effort and cost make this unlikely for most scenarios. If you plan to sell, trade in, or give away your iPhone, erasing it is the standard practice.
What happens to data in cloud services like iCloud
Deleting a document from your iPhone does not automatically delete it from iCloud if you have iCloud Drive enabled. To remove a file from both your phone and iCloud: open Files, find the document, press and hold it, tap Delete, then go to Recently Deleted and delete it permanently. This removes the file from your iPhone's local storage and from iCloud.
If you have iCloud Photos enabled, deleting a photo from your iPhone also deletes it from iCloud after 30 days in Recently Deleted. However, if you have iCloud Backup turned on, your iPhone's backup in iCloud may still contain copies of deleted files. To remove data from your iCloud backup, you must delete it from your iPhone first, then erase your iPhone entirely, which creates a new backup without the deleted data.
Erasing your iPhone does not delete your iCloud account or your data stored in iCloud services like Mail, Contacts, or Calendar. Those remain in your iCloud account until you delete them separately through iCloud.com or through the individual apps on another device.
Frequently Asked Questions
Can someone recover my deleted documents if I sell my iPhone?
Yes, if you only delete files normally. Deleted documents remain recoverable for weeks or months until iOS overwrites the space. The only reliable way to prevent recovery is to erase your entire iPhone using Settings > General > Transfer or Reset > Erase All Content and Settings before selling it.
Does clearing Safari history actually delete the data?
Clearing Safari history removes your browsing history and cookies from the visible system, but cached website data may remain on your phone's storage and could potentially be recovered. For complete removal, erase your entire iPhone.
What's the difference between deleting and erasing on iPhone?
Deleting removes a file from view and marks the space as available for new data, but the original file remains recoverable. Erasing (through Settings > General > Transfer or Reset > Erase All Content and Settings) overwrites all storage space and is the only method that reliably prevents recovery of all data at once.
If I erase my iPhone, will my Apple ID and iCloud account be deleted?
No. Erasing your iPhone removes all data from the device itself, but your Apple ID account and iCloud services remain active. You will need your Apple ID password to set up the phone again. Your iCloud data (Mail, Contacts, Photos, etc.) stays in your iCloud account unless you delete it separately through iCloud.com.
Do I need to delete files before erasing my iPhone?
No. Erasing your entire iPhone removes all files, apps, and settings in one process. You do not need to delete individual documents first. Erasing is actually more thorough than deleting files one by one, because it overwrites all storage space.