Where iPhone stores your documents and data
Your iPhone keeps documents and data in several places, and where something lives determines how you delete it. Documents you create in apps like Notes, Pages, or Numbers live inside those apps. Photos and videos go to the Photos app. Emails stay in Mail. Browser history and website data sit in Safari. App caches and temporary files accumulate in the background. Understanding which app holds what you want to delete saves time — you cannot delete a Pages document from Settings, and clearing Safari history will not touch your Notes.
Some data is easier to find than others. Documents you created yourself are usually visible inside the app that made them. Cached data and temporary files are hidden by default and require you to dig into Settings. Knowing the difference between deleting a single document and clearing all data for an app is important, because one action is reversible and the other is not.
Key Takeaways
- Delete individual documents by opening the app that created them, finding the file, and swiping or tapping delete — this works for Notes, Pages, Numbers, and most document apps.
- Clear Safari history and website data by going to Settings > Safari > Clear History and Website Data, then choose the time range you want to clear.
- Remove app cache and temporary files by going to Settings > General > iPhone Storage, selecting an app, and tapping Offload App or Delete App.
- Permanently erase all data for an app by going to Settings > [App Name] and looking for a Clear Data or Delete Data option, if the app offers one.
- Deleting a document inside an app is permanent unless you have iCloud backups enabled, so check before you confirm.
Delete documents inside the app that created them
The fastest way to delete a single document is to open the app where you made it and remove it from there. In Notes, open the app, tap Edit in the upper left, select the notes you want to delete, then tap Delete. In Pages or Numbers, open the app, find the document in the list, swipe left on it, and tap the trash icon. In Mail, open a message or thread, tap Edit, select the messages, then tap Delete.
Most document and productivity apps follow this same pattern: find the file, swipe or tap to select it, then confirm the deletion. Some apps move deleted items to a Trash or Recently Deleted folder first, which gives you a window to recover them. Check whether your app has a trash folder — Notes keeps deleted notes for 30 days in a Trash folder, but Pages deletes documents immediately unless you recover them from iCloud.
If you use iCloud to sync documents across devices, deleting a document on your iPhone will delete it everywhere. Make sure you do not need the file on your Mac or iPad before you confirm the deletion.
Clear Safari history and website data
Safari stores your browsing history, cookies, and cached website data. To clear it, open Settings, scroll down and tap Safari, then tap Clear History and Website Data. A menu appears asking you to choose a time range: the last hour, today, today and yesterday, or all time. Select the range you want, then tap Clear History and Data.
Clearing history removes the list of websites you visited, but it does not sign you out of websites automatically. Cookies and cached data are deleted, which means websites may load slower the next time you visit them because they have to download images and files again. If you want to clear history but keep cookies so you stay logged into websites, you cannot do that from the main menu — you have to go to Settings > Safari > Advanced > Website Data and manually select which sites to clear.
If you use Safari on multiple Apple devices, clearing history on your iPhone will also clear it on your Mac and iPad if you have iCloud Keychain enabled. Turn off iCloud Keychain in Settings > [Your Name] > iCloud if you want to clear history on only one device.
Remove app cache and temporary files
Apps create temporary files and caches to load faster and use less data. Over time these files add up and take storage space. To see how much space each app uses, go to Settings > General > iPhone Storage. The list shows every app and how much space it takes up. Tap an app to see a breakdown of the app itself versus its documents and data.
You have two options. Offload App removes the app but keeps your documents and data, so reinstalling it later restores everything. Delete App removes the app and all its data permanently. To offload, tap the app name, then tap Offload App. To delete, tap Delete App. Neither option clears the app's cache directly — offloading and reinstalling the app is the closest thing to a cache clear for most apps.
Some apps have their own cache-clearing option inside Settings. Open Settings, scroll down to find the app name, tap it, and look for options like Clear Cache, Clear Data, or Storage. Not every app offers this, but productivity and social media apps often do. Check the app's settings before you offload it.
Clear data from specific apps
Some apps let you clear their data without deleting the app itself. Open Settings, scroll down to find the app name, and tap it. Look for options like Clear Data, Clear Cache, Delete Data, or Storage. The exact wording varies by app. If you see one of these options, tap it and confirm. This removes cached files, temporary data, and sometimes login information, but the app itself stays installed.
Mail, Messages, and Photos do not have a blanket clear-data option in Settings. To delete emails, open Mail, tap Edit, select the messages, and tap Delete. To remove messages, open Messages, swipe left on a conversation, and tap Delete. To delete photos, open Photos, tap Select, choose the photos, and tap Delete. These apps store data inside themselves, not in a separate cache folder.
If an app crashes or behaves strangely, clearing its data often fixes the problem. The app will ask you to log back in and may lose saved preferences, but it usually runs faster afterward.
Erase all iPhone data and start fresh
If you want to delete everything on your iPhone and start over, go to Settings > General > Transfer or Reset, then tap Erase All Content and Settings. This removes every app, document, photo, message, and setting. Your iPhone returns to the state it was in when you first turned it on. You will be asked to enter your Apple ID password and confirm that you want to erase — this is a safety measure to prevent accidental data loss.
Before you erase everything, back up your iPhone to iCloud or your computer. Go to Settings > [Your Name] > iCloud > iCloud Backup and tap Back Up Now, or connect your iPhone to a Mac or PC and use Finder or iTunes to create a backup. Once you erase, you can restore from that backup to get your data back, or set up as a new iPhone if you want a completely clean start.
Erasing takes 10 to 30 minutes depending on how much data you have. Your iPhone will restart several times during the process. Do not disconnect it or turn it off until the erase is complete.
Recover deleted documents and data
If you deleted something by accident, recovery depends on where it was stored. Documents in Notes, Reminders, and some other apps go to a Recently Deleted or Trash folder for 30 days. Open the app, look for a Trash or Recently Deleted section, find the item, and tap Recover or Restore. After 30 days, the item is permanently deleted.
Photos deleted from the Photos app go to the Recently Deleted album for 30 days. Open Photos, tap Albums, scroll down to Recently Deleted, tap Select, choose the photos, and tap Recover. Emails deleted from Mail go to the Trash mailbox for 30 days in most email services, though some providers keep them longer. Open Mail, find the Trash folder, select the email, and move it back to your inbox.
If you erased your entire iPhone and want to restore it, you can recover from an iCloud or computer backup. During setup, choose Restore from iCloud Backup or Restore from Mac/PC Backup, then sign in and select the backup you want. This restores all your apps, documents, photos, and settings to the state they were in when the backup was created.
Frequently Asked Questions
Does clearing Safari history delete my saved passwords?
No. Clearing Safari history removes browsing history, cookies, and cached website data, but not passwords. Your saved passwords stay in iCloud Keychain. If you want to delete a saved password, go to Settings > Passwords, find the website, tap Edit, and tap Delete Password.
Will deleting an app remove all its data?
Yes. Deleting an app from your iPhone removes the app and all its documents, cache, and settings. If you reinstall the app later, it starts fresh unless you restore from a backup. If you want to keep the app but clear its data, use the Offload App option instead, which removes the app but saves your data for when you reinstall it.
Can I recover a document I deleted from Notes?
Yes, for 30 days. Open Notes, tap the Folders icon at the bottom, scroll down to Recently Deleted, find the note, swipe left on it, and tap Recover. After 30 days, the note is permanently deleted and cannot be recovered unless you have an iCloud backup.
What is the difference between Offload App and Delete App?
Offload App removes the app from your iPhone but keeps your documents and data. When you reinstall it, everything comes back. Delete App removes the app and all its data permanently. Use Offload if you want to free up space but might use the app again. Use Delete if you do not plan to use the app anymore.
Does clearing app cache free up storage space?
Yes, but usually not much. Cache files are typically small. Offloading and reinstalling an app clears its cache and frees up the space it uses. Deleting photos, videos, and large apps frees up much more space than clearing cache.