Function delete_attribute
Source pub fn delete_attribute(config_json: &str, code: &str) -> Result<String>
Expand description
Delete an attribute from the configuration
§Arguments
config_json - JSON configuration string
code - Attribute code to delete
§Returns
Modified configuration JSON string
§Errors
NotFound if attribute doesn’t exist
JsonParse if config_json is invalid
MissingSection if CFG_ATTR section doesn’t exist