This function removes a rule from a ModSecurity™ configuration file.
Important:
When you disable the Web Server role, the system disables this function.
config required | string The ModSecurity configuration file's path and filename, relative to the Example: |
id required | integer The rule's ID. Example: |
HTTP Request was successful.
data | object |
object |
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
}
}