i was wondering if text messages are stored in the cloud
They are saved as a part of your iCloud backup. To access them you would have to restore your entire phone, there is no way to only access the messages.
So you're saying that the only way to delete all your saved messages is to delete everything off your phone and restore to factory settings?
Retrieving data ...