Welcome to Apple Support Communities. I'm understanding from your post you only wanted to delete one text but ended up deleting the entire text. Do you have a backup of your device either in iTunes or iCloud? If so, it might be possible to get those important messages back. Follow the steps outlined in the article below for restoring your device from a backup. Restore your iPhone, iPad, or iPod touch from a backup