iPhone devices archive deleted text messages which appear in the Recently Deleted folder under the Messages app. In case the messages have been deleted in the last 30 days, you are able to restore it immediately. Otherwise, you may attempt to restore them with an iTunes or an iCloud backup made prior to the deletion. There are also instances where data recovery software can scan your machine and retrieve deleted text messages from iphone.