How far back can text messages be retrieved?

For a period of time ranging from sixty days to seven years, each provider kept track of the date, time, and parties to each text message. The majority of cellular service providers, however, do not save any text message content at all.