Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have read a lot about this online and would like to confirm once and for all.

Is it possible to retrieve SMS messages that have been deleted from my iPhone?

I know it is possible to get access to the sms.db file but that only holds the current SMS messages. I tried that and was successful in getting it off the phone but when checking the contents there were no deleted messages.

And this would not be relying on any backups either, i.e. I backed up my phone, sent a message and then deleted it without backing up before deleting. Is that SMS gone for good?

share|improve this question

1 Answer 1

You could try to recover information from the sqlite file using for example a hex editor. Here is a quote from SQLite FAQ:

I accidentally deleted some important information from my SQLite database. How can I recover it?

If you have a backup copy of your database file, recover the information from your backup. If you do not have a backup, recovery is very difficult. You might be able to find partial string data in a binary dump of the raw database file. Recovering numeric data might also be possible given special tools, though to our knowledge no such tools exist. SQLite is sometimes compiled with the SQLITE_SECURE_DELETE option which overwrites all deleted content with zeros. If that is the case then recovery is clearly impossible. Recovery is also impossible if you have run VACUUM since the data was deleted. If SQLITE_SECURE_DELETE is not used and VACUUM has not been run, then some of the deleted content might still be in the database file, in areas marked for reuse. But, again, there exist no procedures or tools that we know of to help you recover that data.

Hope this helps.

share|improve this answer
1  
Thanks for your answer, I'll try that but am not hopeful. I'm assuming there are no caches that would contain the data I'm looking for (since the phone hasn't been restarted) –  user4641 Mar 24 '11 at 13:39

protected by Community May 30 '13 at 11:06

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?