Scroll down to tap on Messages. Scroll down to the MESSAGE HISTORY section and tap on Keep Messages. Tap 1 year to place a check mark on that setting. A message will appear informing you that older messages will be deleted.
Delete old text messages
Don't worry, you can delete them. Be sure to delete messages with photos and videos first — they chew up the most space. Here's what to do if you're using an Android. Go to your Messages app and press down on a message or conversation until you see a checkmark and the word Delete.
What's likely stealing all the storage space are all the attachments you send and receive — audio, photos, stickers, videos, GIFs, and files.
Why are messages taking up so much storage? It is possible that there are a lot of pictures or file attachments in the messages or there are a lot of spam text messages that automatically sync to iCloud.
After exporting and copying the text messages from your iPhone to your computer you can then delete the text messages and attachments off your iPhone and free up space.
If Messages is using a lot of space, image attachments are likely to blame, so simply deleting text conversations may not help enough. However, if you have long conversations full of text messages, they might take up quite a bit more space than you think.
Android clearing data should not delete your text messages.
It's important to note that the Android OS does not delete your text messages as long as they are stored on the phone.
Free up storage space: Text messages, especially those with multimedia content like photos, videos, or audio files, can take up a significant amount of storage space on your phone. By deleting old or unimportant messages, you can free up storage space for new apps, documents, or media files.
Open Settings > General. Tap iPhone Storage, select Safari from the list of apps, then tap Website Data. Tap Remove All Website Data at the bottom of the screen, or delete an individual site's data by swiping left and tapping Delete.
The most straightforward solution to clear the iMessage cache on your iPhone is to reboot your device. Restarting your iPhone clears the temporary storage, removing the app's clutter and giving you a clean slate.
Back Up with iTunes and Delete Data
Sometimes the "Storage almost full" message will still appear after you have deleted data because the iPhone still needs storage space. In this case, it's best to back up the data that's taking up the most space and delete it.
Access the same messages on all your devices
When you set up iCloud for Messages, your messages are stored in the cloud instead of locally on your device. You can see them on any device that's set up for iCloud and Messages, including your iPhone, iPad, iPod touch, and Mac.
Delete individual text messages
Touch and hold the message you want to delete. Optional: To delete multiple messages, touch and hold the first message, then tap more messages. Tap Delete to confirm.
If you turn off Messages in iCloud for one device, that device will no longer sync your Messages with your other devices. This does not mean that you cannot still receive texts on the device, but changes won't sync across devices. What is this?
Tip: Clearing the cache simply clears temporary files. It won't erase login credentials, downloaded files, or custom settings.
After you clear cache and cookies: Some settings on sites get deleted. For example, if you were signed in, you'll need to sign in again.
It's easier to keep secrets.
But automatically clearing your texting history every 30 days can help you avoid getting in trouble if your phone slips into the wrong hands. Maybe your jealous lover finds one semi-flirtatious text with an old flame and freaks out.
Check the Sent folder or any other folder you think may contain emails you can delete. Regular emails do not take up a lot of space. To free up the most space in Gmail, you can delete emails that contain attachments, such as documents, photos, songs, etc.
You can choose to automatically delete your iMessages from your device after 30 days or a year, or to keep them on your device forever. For your convenience, iMessages are backed up in iCloud and encrypted if you have enabled either iCloud Backup or Messages in iCloud.
The first option you should try is to go to the Recently Deleted folder (Messages > Edit or Filter > Show recently deleted). If you have iOS 16 and later, and the message was deleted no more than 30 days ago, you can easily restore the conversation.