December 22, 2024
iOS Has Been Saving Your Deleted SMS Attachments

iOS Has Been Saving Your Deleted SMS Attachments

Posted February 6, 2013 at 9:15am by iClarified
iOS has been saving your SMS and iMessage attachments even after you've deleted them, according to several tips received from iClarified readers.

When receiving an attachment via the Messages app, iOS stores the attachment in /var/mobile/Library/SMS/Attachments directory. Once an attachment is deleted the related files should be removed from the directory. Unfortunately, it appears that this has not been the case for some versions of iOS.

We used two devices, one on iOS 6.0 and another on iOS 6.1, to test the issue. After receiving an iMessage with a photo attachment on iOS 6.0, we examined the attachments directory to locate the file. We then deleted the attachment from the message history. Reexamining the directory showed the file was still there! Notably, the attachments directory is accessible without a jailbreak and is backed up to the computer each time you sync, or to iCloud if you use iCloud backups. This makes it quite easy to access. The files persisted even after a reboot.


We then performed the same test using a device on iOS 6.1. Fortunately, after deleting the attachment, it was deleted from the device.

It appears that Apple may have stealthily corrected the issue with iOS 6.1; however, it is still a major security concern for users on earlier firmware versions and users with device backups on their computer or iCloud. In addition, it appears that this bug may explain why some users have been reporting missing free space on their device. For those users these attachments have been accumulating over time and could be causing GBs of wasted space on their device.

One source tells us that he found images on his device that were deleted over two years ago. Unfortunately, the images can't be easily deleted as you probably don't want to wipe all your attachments. However, if you are worried about security it might be a good idea.

Jailbroken users can delete everything in their attachments directory by executing "rm -R /var/mobile/Library/SMS/Attachments/*" in MobileTerminal or deleting the content of the directory using iFile; however, this reportedly can cause problems with third party tweaks such as BiteSMS.


Non-jailbroken users may be able to modify a backup of their device to remove the 'deleted' attachments and then restore that back to their device. The best solution is of course a clean restore to iOS 6.1.

Please let us know in the comments if you've been experiencing this issue and if iOS 6.1 has resolved it.


iOS 6.0 (FAILS TO DELETE ATTACHMENTS):
iOS Has Been Saving Your Deleted SMS Attachments

iOS 6.1 (SUCCESSFULLY DELETES ATTACHMENTS):
iOS Has Been Saving Your Deleted SMS Attachments
Add Comment
Would you like to be notified when someone replies or adds a new comment?
Yes (All Threads)
Yes (This Thread Only)
No
iClarified Icon
Notifications
Would you like to be notified when we post a new Apple news article or tutorial?
Yes
No
Comments (34)
You must login or register to add a comment...
nealhen
nealhen - July 25, 2016 at 6:07am
Recover the deleted SMS attachments from this I think it's a little trouble. Why not use a recovery software to recover deleted files from iPhone? Like FonePaw iPhone Data Recovery which is popular from people to restore some lost data from iPhone or iPad. And the most important is that it's convenient to recover and easy to use.
Rhonda
Rhonda - June 26, 2013 at 4:02pm
I have that exact issue; but I am unsure how to clear all deleted messages with attachments I have tried restoring my iphone to factory settings but all that did was delete my itunes!!??!! I am not a computer programmer over here but step by step how to do this will help me out alot!!
Derek Brown
Derek Brown - March 24, 2013 at 10:52pm
I have some of these 'deleted' images on my phone. Is there a way to tell who I sent these to or who sent them to me? Or when they were sent/received?
John
John - May 17, 2013 at 2:16pm
Has anyone found a way to determine where these attachements originated? Like the original message information?
Derek Brown
Derek Brown - May 17, 2013 at 6:43pm
I tried to figure it out, but I eventually gave up. I suspect the details are purged from the messages database, but the raw attachments are left intact, making it impossible to see who sent/received the attachments or any related test messages. However, if you have a jailbroken iPhone, you can look at the folders containing the attachments to see when they were created and at least get an idea of when the messages were sent/received.
Flubber
Flubber - February 24, 2013 at 10:15am
Those attachments used 5Gb of my iphone... I was looking everywhere for those others file (classic directory you found on forums or tutorials to get rid of other place, till i found this article. 5Gb of loose place filled with photos of my kid took long long time ago...
Breck
Breck - February 8, 2013 at 8:48am
You do realize your home wireless router is used as a location iDevice? Not for locating you for anyone that comes in range of your wireless router. These files are not stored on the iDevice that comes in range of the wireless router, but they are stored / sent somewhere. Isn't wonderful that be cared about so much.
Breck
Breck - February 8, 2013 at 8:34am
You are just now figuring this out? Well to be honest everything from text, emails, pictures, and your location even if you turned it off , basicly anything and everything you have done on your iPhone is still there from day one you turned it on.
Jepha
Jepha - February 7, 2013 at 7:50am
That's a lot of pics I need deleted.
DavidG
DavidG - February 7, 2013 at 5:58am
I'm still having this issue on iPad 2 running 6.1.
DavidG
DavidG - February 7, 2013 at 5:58am
Running 6.1
Amen
Amen - February 6, 2013 at 11:01pm
FML..delete delete delete lol
Sunmar
Sunmar - February 22, 2013 at 7:28am
hey, look at i0n1c,com. There is very interesting info for iOS 5 resalee. I think i0n1c is working at untethered jailbreak for iOS5 and soon will publish first version. What will be name for new jailbreak or meybe he will give his exploit for Dev Team?
Ben
Ben - February 6, 2013 at 7:04pm
Just found a bunch of attachments on my iOS 6.1 iPhone 5 through ifile.... This is frustrating.
Sabar
Sabar - February 24, 2013 at 12:10pm
Hi. I have no knowledge in any dlnoeepmevt and would like to take advantage of the appstore's money making features. I know it may take years to learn, does anyone have any suggestions for tutorials that won't bore a 12 year old out of his mind???Yes, I know it is far fetched and I would like to do other things than just making money. Is there a way to learn C without prior references to languages?
Karmen9
Karmen9 - February 6, 2013 at 4:51pm
This is stocking!!
sidewinder
sidewinder - February 6, 2013 at 5:01pm
stocking (def) noun 1. close-fitting covering for the foot and part of the leg, usually knitted, of wool, cotton, nylon, silk, or similar material.
Logic44
Logic44 - February 6, 2013 at 6:27pm
I laughed out loud
Ron Dean
Ron Dean - February 6, 2013 at 4:45pm
Just freed up 2gb of space......
Jdn1985
Jdn1985 - February 6, 2013 at 7:32pm
This is crazy me too I free up 1.6gb that I could be using for apps, music or photos
Joebrizock
Joebrizock - February 6, 2013 at 3:45pm
Is there a way to restore these files, so I can get the pics back?. I have a few pics that I deleted and would like to get them back
Mike
Mike - February 6, 2013 at 3:16pm
Just confirmed its also part of IOS 5.1.1, just checked ifile and found all deleted pics and videos still there, about 1/2GB big
co0ga
co0ga - February 6, 2013 at 2:44pm
>>>>>>>>>>I've found this almost 2 month ago while I was rooting my Iphone and I called the german apple service "why are there still messages and numbers after deleting them" the one at the service-center could answer my question and I think he wasnt even allowed to answer them -.- fck apple !!!!!! they are working with CIA together.<<<<<<<<<<<<
odedoo1
odedoo1 - February 7, 2013 at 4:07pm
This is kind of old news, in my country it was all over the news like almost 2 years ago that Apple is saving your GPS routs and that they can turn on the microphone and camera from on commend, I don't know how they kept it off the news in the U.S but the GPS part was leaked and Cydia came out with an App that delete the file and stop Apple from spying on our location, then it made it to the courts and Apple layers said that they are studying our routs so they can give us better service ( that was like a year before Apple Maps ) any way the courts made Apple stop it but nothing about the microphone and cameras was mentioned. but in the news here they also showed how the FBI busted 5 mobsters by listening and watching them plan a murder and they showed the whole thing that the FBI saw and heard. there are all kind of talk about the goverment asking Apple to build a phone that you can't take the battery out for just that reason, also the Feds or CIA will pay up to $200,000 for a good jailbreak ( Cydia paid $30,000,000 for the guys that created the 5.1.1 jailbreak, I bet they paid much more for the long awaited 6.1 jailbreak ) So nothing would surprise me when Apple name comes up!!!
Jankhankhan
Jankhankhan - February 6, 2013 at 12:59pm
I agree with Tom !! Thats fuking annoying how come your deleted contact still appear ??
ipadguy
ipadguy - February 6, 2013 at 12:26pm
This is bad for people that are cheating on their girlfriends or wives or simply doing some criminal shit... Otherwise a picture or video in a text message should definitely not f with your security or anything else... I mean like some information in a pictures or video put in an instant message, you shouldn't get in trouble for that... first of all your text messages are private property of yours police and other authorities should not have easy access or any access if you haven't done anything criminal!
Really!!!
Really!!! - February 6, 2013 at 7:14pm
It has nothing to do with any human behavior. Stop defending apple. It's something that should have been fixed ages ago. Which takes me back to the previous article about jailbreaking, I've had more problems with iOS itself then anything jailbreak has brought. Also on top of it jailbreakers can easily remove the dormant space wasting images that act deleted but are not, that normal users have to restore there phones from a full restore point because even there backup may still have those images. It's BS!
Aris
Aris - February 6, 2013 at 9:27pm
I don't trust using my iPhone anymore. I am really conserving switching to the new galaxy.
odedoo1
odedoo1 - February 7, 2013 at 4:10pm
I own all Apple devices and I totally agree with you and I won't defend Apple!
Tom
Tom - February 6, 2013 at 11:49am
There is another issue with messages, If you delete a contact with an iPhone that uses iMessage, if you type the name of the contact it'll still appear. It's really annoying.
Adam
Adam - February 6, 2013 at 10:58am
Boo fvcking hoo.
G
G - February 6, 2013 at 9:45am
Not case on 5.1.1
Mike
Mike - February 6, 2013 at 3:20pm
I've confirmed that 5.1.1 does it as well, I found pictures and videos from over a year ago still there, checked with ifile
odedoo1
odedoo1 - February 7, 2013 at 4:13pm
there are Apps at Cydia just for those kind of things.
Recent. Read the latest Apple News.
RECENT
Tutorials. Help is here.
TUTORIALS
Where to Download macOS Sequoia
Where to Download macOS Ventura
AppleTV Firmware Download Locations
Where To Download iPad Firmware Files From
Where To Download iPhone Firmware Files From
Deals. Save on Apple devices and accessories.
DEALS