Each “event” (note) in Nostr has numeric kind field. Some kinds are meant to be replaceable (editable) but regular kind=1 text notes are not.
There is a specification for note deletion (NIP-09), and while most relays offer support for this, not many clients implement it.