Petersaint › Guides › Delete all photos on iPhone
How to delete all photos on iPhone, and what goes with them
Open Photos, tap Select and slide your finger across the thumbnails, holding it near the edge of the screen so the library keeps scrolling. Tap the Trash button and confirm. Then open Recently Deleted and tap Delete All. If iCloud Photos is on, this also deletes them from iCloud and your other devices, so back up first.
Before you delete: three things to check
Deleting a whole library takes a minute. Getting it back can be impossible. Check these first.
- Is iCloud Photos on? Apple says that with iCloud Photos, deleting a photo on one device deletes it on every device signed in to the same Apple Account. Clearing your iPhone then clears your iPad, your Mac and iCloud.com as well.
- Do you have a copy? Apple's first step is to back up the photos and videos you still need. A computer or another cloud service will do; the point is a copy that lives somewhere your deletion won't reach.
- Do you use a Shared Library? In an iCloud Shared Photo Library anyone can delete items, and a deletion removes the item for everyone in it. Our guide to turning off shared photos explains how to leave one first.
How to delete all photos on iPhone
The Photos library has no Select All button. PetaPixel says as much: there's no shortcut that picks every photo at once. What you do instead is select one, then sweep.
- Open Photos and go to the top of your library. Tapping the top edge of the screen gets you there quickly.
- Tap Select.
- Put your finger on the first thumbnail and slide it across the row, then down. Keep your finger near the bottom edge of the screen and the library scrolls on its own, selecting as it goes.
- When everything is ticked, tap the Trash button.
- Confirm the deletion.
A library of several thousand pictures takes a while to scroll through, so give it time and check the count at the top before you confirm. To delete only some of them, tap or slide across just the ones you want.
If the Trash button is grey. Apple says photos added to the iPhone from a computer can't be deleted in Photos on the phone. Stop syncing them from the computer and they go.
Empty Recently Deleted to finish the job
Deleted photos don't vanish yet. They move to the Recently Deleted album and stay there for 30 days, still taking up space and still on the phone. To remove them now:
- In Photos, tap Collections, swipe up and tap Recently Deleted under Utilities.
- Tap View Album and unlock it with Face ID, Touch ID or your passcode.
- Tap Select, then the More button, then Delete All.
- Confirm with Delete from All Devices (or Delete Photos I Added if you use a Shared Library).
Apple is clear that items you delete from Recently Deleted can't be recovered. Changed your mind within 30 days? Use Recover All in the same menu instead. Our Recently Deleted guide covers recovery and the album's lock in more detail.
Deleting everything from iCloud.com instead
If your library lives in iCloud Photos, you can also work from a computer, which some people find easier with a big library.
- Go to icloud.com/photos and sign in with your Apple Account.
- Select the photos and videos to delete.
- Click the Delete button, then choose Delete.
- To remove them for good straight away, open Recently Deleted, select the items and choose Delete.
Apple's iCloud guide says a deletion on iCloud.com applies to all your devices that have iCloud Photos turned on, so the result is the same as deleting on the iPhone.
Clearing the iPhone but keeping iCloud
Many people searching for this want the opposite: a clear phone with the photos still safe in iCloud. Deleting with iCloud Photos switched on won't do that, because the deletion syncs. You need to turn off iCloud Photos on that iPhone first, after checking you have the originals. Our guide to turning off iCloud Photos walks through it, including a section on deleting from the iPhone but not from iCloud.
Selling or giving the phone away? Erase it instead
If the aim is a clean phone for someone else, deleting photos one library at a time is the wrong tool. Apple's advice before you sell, give away or trade in an iPhone is to back it up, sign out of your Apple Account, then erase it:
- Back up the iPhone.
- Open Settings, tap your name, scroll down and tap Sign Out.
- Go to Settings › General › Transfer or Reset iPhone and tap Erase All Content and Settings.
- Enter your passcode if asked, then tap Erase iPhone.
Erasing removes your photos and everything else from the device. It doesn't touch iCloud: Apple says your content won't be deleted from iCloud when you erase your device. It also warns the other way round: if you delete items by hand while signed in to iCloud, they're removed from iCloud and every connected device. So before a sale, erase rather than delete.
The options compared
| What you do | Removes from this iPhone | Removes from iCloud and other devices | Can you undo it? |
|---|---|---|---|
| Select and delete in Photos, iCloud Photos on | Yes | Yes | For 30 days, from Recently Deleted |
| Select and delete in Photos, iCloud Photos off | Yes | No | For 30 days, from Recently Deleted |
| Empty Recently Deleted | Yes, for good | Yes, if iCloud Photos is on | No |
| Delete on iCloud.com | Yes, if iCloud Photos is on | Yes | For 30 days, from Recently Deleted |
| Erase All Content and Settings | Yes, with everything else | No | Only from a backup |
Keeping a few private photos before you clear the rest
Sometimes a clear-out has a different purpose: you want the library empty of pictures other people might scroll past, but you don't want to lose a handful of them. The free option is the Hidden album, which keeps pictures out of the main grid but leaves them in Photos, so check it before and after a clear-out.
The other option is to move those few out of the library first. Petersaint is an encrypted vault for iPhone photos, videos and files, opened by a pattern you draw that is separate from your phone passcode. When you import from Photos it offers to delete the originals, so once they're in the vault you can clear the library without losing them. The vault makes no network connections for your files and stores nothing in iCloud. That cuts both ways: the vault is excluded from iCloud and computer backups, so it won't follow you to a new phone through an iPhone backup. Before you erase or sell the phone, export an encrypted backup from Petersaint and keep its 12-word phrase: on the new phone you restore the vault from that file.
Honest limits. Petersaint can't reset a forgotten pattern: without an encrypted backup you exported, and its 12-word phrase, the files are gone. By default, wrong patterns never erase the vault: each one just makes the wait before the next try longer. You can turn on self-destruct, which destroys the key, and the files with it, after 3, 5 or 10 wrong patterns in a row. Backup isn't automatic: the vault is left out of iCloud and computer backups, so export an encrypted backup, or keep copies elsewhere, of anything you can't lose. It's iPhone only, iOS 16.4 or later.
Petersaint: an encrypted vault for your iPhone's photos and files. No account, no cloud, no data collected. Free for up to 50 items.
Download on the App StoreQuestions
Is there a Select All button in the iPhone Photos library?
No. In the main library you tap Select and slide your finger across the thumbnails; holding your finger near the edge of the screen keeps it scrolling, so you can sweep up the whole library in one movement. Recently Deleted is different: it has Delete All.
If I delete all photos on my iPhone, are they deleted from iCloud?
Yes, if iCloud Photos is on. Apple says deleting a photo on one device deletes it on every device signed in to the same Apple Account. Back up anything you want to keep first, or turn off iCloud Photos on that iPhone before you delete.
Why is the Trash button grey on some photos?
Apple says photos synced to the iPhone from a computer can't be deleted in Photos on the phone. You need to stop syncing those photos from the computer, after which they are removed.
Can I get photos back after deleting them all?
For 30 days, yes: they sit in Recently Deleted and you can tap Recover All. Once you empty Recently Deleted, or the 30 days pass, Apple says they can't be recovered from the phone.
Does erasing my iPhone delete my iCloud photos?
No. Apple says your content won't be deleted from iCloud when you erase the device. Deleting photos by hand while signed in to iCloud is what removes them from iCloud and your other devices.
Sources: Apple Support: Delete photos on your iPhone or iPad, Apple iCloud User Guide: Delete photos and videos on iCloud.com, Apple Support: What to do before you sell, give away or trade in your iPhone or iPad, PetaPixel: How to delete all photos from your iPhone.