How to Prevent a host from deleting

You seem to be misunderstanding these

image

fields.
They get filled by checkmk if you engage the dynamic configuration daemon and configure it to add and remove hosts automatically, based on piggyback data. If the DCD adds a host, then some of the host attributes are set by this process and cannot be changed. They are locked: