I deleted a load of photos on my Mac and just realised I haven't got a backup. Can I get them back? Help!

Losing a file in Mac OS X can be a real pain, and doubly so when you're the one who clicked delete. Fortunately it's pretty easy to recover deleted files, particularly if you realise your mistake quickly. This guide will show you how to recover deleted items on a Mac. We also cover deleted files and photos on an iPad and iPhone.

In this tutorial we'll look at simple methods for getting back deleted documents, photos, music files and contacts.

See also:

How to recover deleted files: How to recover a deleted document in Mac OS X

Recovering a deleted document in Mac OS X is straightforward if you do it straight away. It will usually be found inside the Trash can - sorry, rubbish bin. Click on the Trash icon (on the right of the Dock) to view all of the files you have deleted. You can use the Search box in the Finder window to find the file (enter the search term then click on Trash instead of This Mac to search the Trash folder). Locate the file you want to rescue and drag it back out of the Trash and to the Desktop (or any other part of Finder).

But bear in mind that time is a factor here - when your hard drive gets full, Mac OS X may start to remove items from the Trash. So if you deleted it a long time ago you may find the item has been removed. In this instance, you can recover it using a Time Machine backup.

How to recover deleted files on Mac

How to recover deleted files: How to recover a deleted photo on Mac - Photos

When you delete a photo from the Photos app on Mac, you get a 30-day grace period. If you change your mind before the 30 days have elapsed, you can go into the Recently Deleted album and recover the photo.

How to recover deleted photos on Mac

Select Albums from the bar along the top, and double-click Recently Deleted. You'll see a list of photos and videos you've deleted, well, recently, with a caption under each one indicating how long it's got left. Select the photo you want to get back and slick Recover at the top right. (If you want to save space and you've just deleted a bunch of large files you're absolutely certain you won't want them back, you can also click Delete All.)

How to recover deleted photos on Mac

Things become slightly more complicated if you've got iCloud Photo Library enabled. iCloud Photo Library automatically pulls in all the photos you take with your iPhone and iPad, which means there will be multiple digital copies - so a photo that's been deleted from one device will still be available on the others, right? Not so: deletions sync across all devices.

When you delete an iCloud Photo Library picture or video from the Mac, it'll pop up a warning message, 'Delete from all your devices?', and your only options are to agree to this or not delete the photo at all. And if you delete an image from your iPhone or iPad, you don't even get the warning - it'll just be whisked off iCloud Photo Library on other devices.

How to recover deleted files: How to recover a deleted photo on Mac - iPhoto

If you're still using iPhoto (which Apple replaced with Photos in 2015) and you've deleted the photo from that program, it will be sent to the iPhoto Trash (rather than the usual Mac OS X Trash). Follow these steps to recover a deleted image in iPhoto:

  1. Open iPhoto and click on Trash in the Sidebar.
  2. Control+Click on the photo you want to recover and choose Put Back.
  3. Click on Photos in the Sidebar to view the images.

The file will now be placed back in the iPhoto library.

The iPhoto Trash Folder

How to recover deleted files: How to recover a deleted photo in iOS

Photos are stored in the Photos app in iOS. The iOS version of Photos has much in common with its Mac equivalent, and this includes the 30-day grace period for deleted photos and videos.

How to recover deleted photos on iPad or iPhone

If you delete a photo from the iPhone or iPad and want it back, tap on Albums at the bottom of the screen. Somewhere in amongst the Selfies and Screenshots you'll see an album called Recently Deleted. Tap this.

How to recover deleted photos on iPad or iPhone

As on the Mac, any photos or videos that have been deleted in the past 30 days will be shown here, along with a tag that tells you how many days they've got left. If you can get to the file before the time runs out, you can tap it, then tap Recover (then confirm by tapping Recover Photo), and it'll transfer back to your Camera Roll.

See: How to get photos on to your iPad from your camera, Mac, PC or iPhone

Bear in mind that when you delete a photo from your iPhone or iPad it will also be deleted from your iCloud Photo Library, if you've got this feature enabled.

If you take and delete many pictures on an iPad, then you may want to invest in another backup solution. Fortunately many of the cloud services offer instant upload of any photos you snap to a cloud storage space. Consider installing Dropbox, Google Drive or Box and turn on Photo Backup. (See: iCloud vs Dropbox comparison review).

Here are the steps for Dropbox:

  1. Sign up for a Dropbox account and download the Dropbox app for iPad or iPhone.
  2. Open Dropbox and click on Settings  > Camera Upload and turn on Camera Upload.
  3. As you snap photos they will be sent to a folder in Dropbox called Camera Uploads.
  4. Click on the Photos tab in Dropbox to view recently uploaded images. This will also include any photos you have deleted from the Photos app.
  5. Select a photo in Dropbox and tap on the Share icon and choose Save Image.

This will send the deleted image back to the Photos app in iOS. It is not an ideal backup solution, because it requires you to set up Dropbox in advance. However, if you take many images you’ll find this service invaluable. Both Google Drive, Box and other cloud services work in largely the same manner.

How to recover deleted files: How to recover deleted music files in macOS

Music files are largely managed on Mac computers using iTunes. This displays the music files but keeps the actual music files stored in the iTunes Music folder. (This is located in [username] > Music > iTunes > iTunes Music. Alternatively, in some earlier version of Mac OS X, you need to look in Home > Music > iTunes Media > Music.)

When you delete a music file in iTunes, you remove the listing in iTunes, and sometimes move the file from the Music folder in Finder to the Trash (you get the option when you delete the file). If you've simply removed the music file from iTunes, it will still be in the iTunes > iTunes Music (or iTunes Media > Music) folder. So the first thing to do is check this folder for the missing audio file. If you find it then drag it on top of the iTunes icon to re-import it back into iTunes.

If the file has been removed from iTunes and deleted from the Finder then you'll find it in the Trash folder. Follow these steps to get it back into iTunes:

  1. Open iTunes and click on iTunes > Preferences.
  2. Click Advanced and make sure there is a tick in the box marked 'Copy files to iTunes Media folder when adding to library'.
  3. Drag the audio file out of the Trash to the Desktop.
  4. Drag the audio file on top of the iTunes icon. It should be re-imported and copied into the iTunes folder in Finder.
  5. Move the audio file from the desktop back to the Trash. (It has been copied back into iTunes so is now a duplicate file.)

How to recover deleted music on Mac

This restores the music file to iTunes. If you cannot find the audio file in the Trash then you will need to either check your Time Machine backup, or get the audio file again - rip it again from the CD it came from or, if you purchased it from iTunes, download the file again from the iTunes Store.

How to recover deleted files: How to recover deleted music files in iOS

Fairly often, songs are synced from a Mac (or PC) computer to the iPhone or iPad. If this is the case for you, the song may have been deleted from the iDevice but you'll find you can copy it back over the next time you sync with the computer.

If you purchased the track from Apple's iTunes Store you can redownload it from your Purchased list. Open iTunes Store > Purchased and tap the iCloud Download icon to download it to your iPad or iPhone.

How to recover deleted files: How to recover deleted contacts in macOS

If you've deleted an entry from the Contacts app in Mac OS X then you can tap on Edit > Undo Delete Card. You have to do this before making any other edits in Contacts, or you'll lose the card. You can recover it using Time Machine, if you have it set up on your Mac.

Read next: How to transfer a Time Machine backup to a new Mac

How to recover deleted files: How to recover deleted emails on iPhone and iPad

Generally speaking you can recover deleted emails in iOS Mail by giving your iPhone or iPad a little shake to invoke the undo gesture. When the undo dialogue box appears, tap Undo.

How to recover deleted emails on iPhone and iPad

But the undo gesture is a single-step undo only, so if you've performed another action in Mail since accidentally deleting the email, this won't work. In this case you need to find the relevant deleted emails folder (the name varies according to the email service, but may be Deleted, Trash, Junk or similar), locate and tap on the discarded email and then tap the folder icon at the bottom and send it back to the inbox. You generally have a week by default before iOS deletes emails that have been designated for deletion.

Read more: How to recover deleted emails on iPhone or iPad