The steps for a tutorial on how to delete SMS on an iPhone automatically are as follows:
1. Open Settings,
2. Select the Messages menu,
3. Then select the Keep Messages option,
4. Then you can choose 1 month (30 Days) or 1 year (1 Year) to determine how long the SMS is stored in the inbox until it is automatically deleted,
5. Done.