code: public RuleEnvelope deleteRule(String ruleId) throws ApiException {
          ApiResponse<RuleEnvelope> resp = deleteRuleWithHttpInfo(ruleId);
          return resp.getData();
      }
docs: Delete Rule
  Delete a Rule
  @param ruleId Rule ID. (required)
  @return RuleEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body