Restriction: This feature is available only in Premium groups, Enterprise groups, and legacy Free groups.
You can delete a chat message that you posted by clicking or tapping and holding (long pressing) in that message and selecting the trash can icon from the popup.