Remove ModSecurity configuration

This function removes a global ModSecurity™ configuration directive.

Important:

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

Authorizations:
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

Response Schema: application/json
data
object
object

Request samples

whmapi1 --output=jsonpretty \
  modsec_remove_setting \
  setting_id='3'

Response samples

Content type
application/json
{
  • "data": { },
  • "metadata": {
    • "command": "modsec_remove_setting",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}