When you back up your iPhone, your text messages are included in the backup. This is convenient if you ever need to restore your iPhone from a backup or if you want to access your text messages on another device.
If you delete a text message on your iPhone, it is also deleted from your backup. If you want to keep a text message in your backup, you need to save it to your computer or another device.
The iPhone …