Remove ModSecurity configuration

This function removes a global ModSecurity™ configuration directive.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
setting_id
required
integer

The setting's ID. For a list of available settings and their IDs, call the modsec_get_settings function.

Example: setting_id=3
Responses
200

HTTP Request was successful.

Response Schema: application/json
data
object
object
get/modsec_remove_setting
Request samples
whmapi1 --output=jsonpretty \
  modsec_remove_setting \
  setting_id='3'
Response samples
application/json
{
  • "data": { },
  • "metadata": {
    • "command": "modsec_remove_setting",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}