At the moment, it’s not possible to delete an entire message thread. However, you can delete individual messages that you have sent.
To delete a message:
Open the Messages section.
Open the conversation containing the message.
Long-press the message you want to remove.
Tap Delete this message when prompted.
Confirm by tapping Delete this message again.
Please note that deleting a message is permanent and cannot be undone.