code: public void disableAllOverrides(int pathID, String clientUUID, int overrideType) {
          PreparedStatement statement = null;
  
          try (Connection sqlConnection = sqlService.getConnection()) {
              ArrayList<Integer> enabledOverrides = new ArrayList<Integer>();
              enabledOverrides.add(Constants.PLUGIN_REQUEST_HEADER_OVERRIDE_ADD);
              enabledOverrides.add(Constants.PLUGIN_REQUEST_HEADER_OVERRIDE_REMOVE);
              enabledOverrides.add(Constants.PLUGIN_REQUEST_OVERRIDE_CUSTOM);
              enabledOverrides.add(Constants.PLUGIN_REQUEST_OVERRIDE_CUSTOM_POST_BODY);
  
              String overridePlaceholders = preparePlaceHolders(enabledOverrides.size());
  
              statement = sqlConnection.prepareStatement(
                  "DELETE FROM " + Constants.DB_TABLE_ENABLED_OVERRIDE +
                      " WHERE " + Constants.ENABLED_OVERRIDES_PATH_ID + " = ? " +
                      " AND " + Constants.GENERIC_CLIENT_UUID + " = ? " +
                      " AND " + Constants.ENABLED_OVERRIDES_OVERRIDE_ID +
                      (overrideType == Constants.OVERRIDE_TYPE_RESPONSE ? " NOT" : "") +
                      " IN ( " + overridePlaceholders + " )"
              );
              statement.setInt(1, pathID);
              statement.setString(2, clientUUID);
              for (int i = 3; i <= enabledOverrides.size() + 2; ++i) {
                  statement.setInt(i, enabledOverrides.get(i - 3));
              }
              statement.execute();
          } catch (Exception e) {
              e.printStackTrace();
          } finally {
              try {
                  if (statement != null) {
                      statement.close();
                  }
              } catch (Exception e) {
              }
          }
      }
docs: Disable all overrides for a specified path with overrideType
  
  @param pathID ID of path containing overrides
  @param clientUUID UUID of client
  @param overrideType Override type identifier