If you are on iOS 15 or below, you will only see the option to delete messages for yourself. Since iOS 16, you can delete a message for both ends within 15 minutes of sending it. But if the other user is not on iOS 16, they might still see your deleted message.