If you regularly find yourself deleting old or random messages, it’s good to double check sometimes. iPhone’s iMessage or regular messages can not be retrieved via an option. What you can do is restore from a backup or use an additional app to retrieve deleted messages.
I can guarantee that it will take a lot of time and require some technical skills.
There is a better solution to avoid making silly mistakes in the Messages app. A better approach to “accidentally deleted your iPhone text messages” would be adding a confirmation dialog.
By default, iPhone would allow you to remove a conversation right away. But if your iOS device is jailbroken, install a tweak called MessageDeleteConfirmer.
The package will add a Delete Confirmation to whenever you attempt to delete an iPhone message. When swiping right and tap on the red Delete button, a popup will appear asking if you want to proceed.
This will make sure that you know what you’re doing and in case that was a mistake, you can just choose Cancel.
How to Confirm Before Deleting iPhone Messages
Step 1: Go to Cydia and wait for it to refresh
Step 2: Head over to the Search page and type in MessageDeleteConfirmer
Step 3: The author of this tweak is iPawk and tap on the Install button
Step 4: Respring your device and go to the Messages.app
Note that in term of the interface, nothing changes. But if you try to delete an iMessage or SMS, it will now ask
Are you sure you want to delete this thread?
Choose Delete if that is what you want or Cancel to make sure you selected the right thread. As described by the developer, this tweak can “Potentially saves a big hassle or general heartache!”.
You can see MessageDeleteConfirmer tweak as a simple undo option for every time you make a simple mistake that could cost you all your important messages.