# Remove staged ModSecurity rule changes This function discards staged rule changes for a ModSecurity™ configuration file. Staged rule changes reside in a  file (for example, the staged changes for the file exist in the file). This function deletes the  file that corresponds to the configuration file that you specify. To stage rule changes, call WHM API 1's function. When you disable the Web Server role, the system this function. Endpoint: GET /modsec_discard_rule_changes Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `config` (string, required) The ModSecurity configuration file in the directory. Example: "modsec2.example.conf" ## Response 200 fields (application/json): - `data` (object) - `metadata` (object) - `metadata.command` (string) The method name called. Example: "modsec_discard_rule_changes" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * — Success. * — Failed. Check the field for more details. Enum: 1, 0 - `metadata.version` (integer) The version of the API function. Example: 1