Can I delete my message after the teacher has replied to it?

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