This function removes a rule from a ModSecurity™ configuration file.
Important:
When you disable the Web Server role, the system disables this function.
whmapi1 --output=jsonpretty \ modsec_remove_rule \ config='modsec_vendor_configs/example.conf' \ id='1234567890'
{- "data": { },
- "metadata": {
- "command": "modsec_remove_rule",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}