No, you cannot delete your message once the teacher has replied. However, you can send the corrected message as a reply if needed.