Open the messaging app
Find the sent message
Press and hold the message
Tap Delete or Remove
Choose Delete for me or Delete for everyone if available
Confirm the deletion
Note that some apps only let you delete it from your device
Note that the recipient may still have already seen or saved it
