Text messages gone

What device? What texting app?

The message database is stored in a protected area of storage, usually inaccessible except through messaging apps.