latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

ModSecurity
Server Settings

Remove ModSecurity configuration

This function removes a global ModSecurity™ configuration directive.

Important:

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

get/modsec_remove_setting

Query parameters

setting_idinteger required
Example:3

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

Response

HTTP Request was successful.

dataobject

Example response

{
  "metadata": {
    "command": "modsec_remove_setting",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}