Description

This function removes a global ModSecurity™ configuration directive.

Examples




https://hostname.example.com:2087/cpsess##########/json-api/modsec_remove_setting?api.version=1&setting_id=3




https://hostname.example.com:2087/cpsess##########/xml-api/modsec_remove_setting?api.version=1&setting_id=3




whmapi1 modsec_remove_setting setting_id=3



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




<result>
  <data></data>
  <metadata>
    <command>modsec_remove_setting</command>
    <reason>OK</reason>
    <result>1</result>
    <version>1</version>
  </metadata>
</result>



Parameters

ParameterTypeDescriptionPossible valuesExample
setting_idinteger

Required

The setting's ID.

A valid setting ID.

For a list of available settings and their IDs, call the WHM API 1 modsec_get_settings function.

                 3 
              

Returns

This function only returns metadata.