Where iPhone stores your documents and data
Your iPhone keeps documents and data in several places, and each one requires a different method to clear. The main locations are: individual apps (like Notes, Mail, or document editors), iCloud Drive, Safari browsing history and cached files, Photos, and the iPhone's general system cache. Understanding where your information lives is the first step to removing it completely.
When you delete something from an app, it often stays in that app's cache or backup until you take extra steps. iCloud backups can hold copies of deleted files for weeks. Safari keeps browsing data separate from app data. If you want to truly remove something, you need to know which storage location holds it and clear that specific place.
Key Takeaways
- Deleting a document from an app does not remove it from iCloud backups or app caches — you must clear each location separately.
- To remove all traces of a document editor or app, delete the app itself, then go to Settings > General > iPhone Storage and tap the app name again to remove its cached data.
- Safari browsing history, cookies, and cached website data live in Settings > Safari > Clear History and Website Data, separate from app data.
- iCloud Drive holds document copies even after you delete them locally; sign into iCloud.com or use the Files app to delete them there too.
- Clearing all data and resetting your iPhone completely requires Settings > General > Transfer or Reset > Erase All Content and Settings, which removes everything.
Clearing documents from individual apps
The fastest way to remove a document from a specific app is to open that app, find the document, and delete it. In Notes, swipe left on a note and tap Delete. In a document editor like Pages or Word, tap Edit, select the document, and tap Delete. In Mail, swipe left on an email and tap Trash. Each app has its own delete method, but the document usually moves to a trash or recently deleted folder first.
Deleted documents often stay in a trash folder for 30 days before permanent removal. In Notes, tap Folders at the bottom, then Recently Deleted, select the note, and tap Delete again to remove it permanently. In Mail, go to Trash, select the email, and delete it a second time. Check your app's trash or recently deleted section and empty it completely if you want the document gone when ready rather than waiting 30 days.
Removing app cache and temporary files
When you delete a document from an app, the app often keeps a copy in its cache — temporary storage that speeds up the app but takes up space. To clear this cache, go to Settings > General > iPhone Storage. Scroll down and tap the app name. You will see two options: Offload App (removes the app but keeps your data) and Delete App (removes everything). Tap Delete App, then reinstall it from the App Store if you want to keep using it.
Deleting and reinstalling the app is the most complete way to clear its cache. However, if the app syncs to iCloud or a cloud service, reinstalling will read your data again unless you also delete it from the cloud. For apps like document editors that save to iCloud Drive, you must delete the documents from iCloud separately — reinstalling the app alone will not remove them.
Clearing Safari history and browsing data
Safari stores three types of data: browsing history (the list of websites you visited), cookies (small files websites use to remember you), and cached website data (images and files downloaded to load pages faster). All three can reveal what you looked at and where you went. To clear all of them at once, go to Settings > Safari > Clear History and Website Data. Choose a time range: Last Hour, Today, Today and Yesterday, or All Time. Tap Clear History and Website Data to confirm.
If you want to clear only history but keep cookies and cached data, Safari does not offer that option in Settings. Instead, open Safari, tap the Bookmarks icon (the open book), tap History, then tap Clear at the bottom and choose your time range. This clears history only. To remove cookies and cached data without clearing history, you must delete the Safari app data through Settings > General > iPhone Storage > Safari > Delete App, then reinstall Safari from the App Store.
Removing documents from iCloud Drive
Documents you save to iCloud Drive stay there even after you delete them from your iPhone. To remove them completely, you must delete them from iCloud itself. The easiest way is to open the Files app on your iPhone, tap Browse, tap iCloud Drive, find the document or folder, swipe left on it, and tap Delete. The document moves to Recently Deleted in iCloud Drive, where it stays for 30 days before permanent removal.
To permanently delete it when ready, tap Browse in Files, scroll down to Recently Deleted, swipe left on the document, and tap Delete. Alternatively, go to iCloud.com on any computer or browser, sign in with your Apple ID, click iCloud Drive, find the document, right-click it, and click Delete. Then go to Recently Deleted and permanently delete it there. This ensures the document is gone from iCloud and will not sync back to your iPhone.
Clearing Photos and video data
Photos and videos you delete from the Photos app move to Recently Deleted, where they stay for 30 days. To remove them when ready, open Photos, tap Albums at the bottom, scroll down to Recently Deleted, tap Select, choose the photos or videos, and tap Delete. If you use iCloud Photos, deleted photos also disappear from iCloud after 30 days, but you can speed this up by deleting them from Recently Deleted.
If you use iCloud Photos and want to remove a photo from all your devices at once, delete it from the Photos app on your iPhone and it will disappear from iCloud and any other device signed into the same Apple ID. However, if you have iCloud backups enabled, the photo may still exist in your backup. To remove it from backups, you must delete the entire backup and create a new one, which requires going to Settings > [Your Name] > iCloud > Manage Storage > Backups, selecting your device, and deleting the backup.
Doing a complete factory reset
If you want to remove all data and documents from your iPhone at once, you can erase the entire device. This removes every app, photo, document, message, and setting and returns the iPhone to its factory state. Go to Settings > General > Transfer or Reset > Erase All Content and Settings. Enter your Apple ID password and confirm. The iPhone will restart and erase everything, then ask you to set it up as new or restore from a backup.
Before erasing, make sure you have backed up anything you want to keep. If you have iCloud backups enabled, the backup will remain in iCloud even after you erase the device. To remove the backup too, go to Settings > [Your Name] > iCloud > Manage Storage > Backups, tap your device name, and tap Delete Backup. After erasing the iPhone and deleting the backup, all your data is gone from both the device and iCloud.
Frequently Asked Questions
Does deleting a document from an app remove it from iCloud?
No. Deleting a document from an app only removes it from that app on your iPhone. If the app syncs to iCloud, the document remains in iCloud until you delete it there separately. You must go to iCloud.com or use the Files app to delete it from iCloud Drive, or delete your iCloud backup entirely.
How long do deleted documents stay on my iPhone?
Most apps keep deleted documents in a Recently Deleted or Trash folder for 30 days before permanent removal. You can permanently delete them when ready by opening that folder and deleting them again. After 30 days, they are automatically removed if you do not restore them.
If I delete an app, does it remove all my documents?
Deleting an app removes the app and its cache from your iPhone, but documents saved to iCloud Drive or cloud services remain there. You must delete those documents separately from iCloud or the cloud service. If documents were only stored locally in the app, deleting the app removes them.
Can I clear Safari history without clearing cookies?
Safari's Settings menu clears history, cookies, and cached data together. To clear only history, open Safari, tap Bookmarks, tap History, and tap Clear. To remove cookies and cache without clearing history, you must delete and reinstall the Safari app, which clears all Safari data.
What happens to my data if I erase my iPhone?
Erasing your iPhone removes all apps, documents, photos, and settings from the device itself. However, if you have iCloud backups enabled, a copy of your data remains in iCloud. To remove it completely, you must also delete your iCloud backup from Settings > [Your Name] > iCloud > Manage Storage > Backups.