deleteGroupRule(ruleId, queryParameters) {
    if (!ruleId) {
      return Promise.reject(new Error('OKTA API deleteGroupRule parameter ruleId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/groups/rules/${ruleId}`;
    const queryString = qs.stringify(queryParameters || {});

    url += queryString ? ('?' + queryString) : '';

    const resources = [
      `${this.baseUrl}/api/v1/groups/rules/${ruleId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param ruleId {String}
   * @param {Object} queryParams Map of query parameters to add to this request
   * @param {String} [queryParams.removeUsers]
   * @description
   * Removes a specific group rule by id from your organization
   */
@param ruleId {String}
@param {Object} queryParams Map of query parameters to add to this request
@param {String} [queryParams.removeUsers]
@description
Removes a specific group rule by id from your organization
@param ruleId { String } @param { Object } queryParams Map of query parameters to add to this request @param { String } [ queryParams . removeUsers ] @description Removes a specific group rule by id from your organization
deleteGroupRule(ruleId, queryParameters) {
    if (!ruleId) {
      return Promise.reject(new Error('OKTA API deleteGroupRule parameter ruleId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/groups/rules/${ruleId}`;
    const queryString = qs.stringify(queryParameters || {});
    url += queryString ? ('?' + queryString) : '';
    const resources = [
      `${this.baseUrl}/api/v1/groups/rules/${ruleId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
deleteGroupRule ( ruleId , queryParameters ) { if ( ! ruleId ) { return Promise . reject ( new Error ( 'OKTA API deleteGroupRule parameter ruleId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ ruleId } ` ; const queryString = qs . stringify ( queryParameters || { } ) ; url += queryString ? ( '?' + queryString ) : '' ; const resources = [ ` ${ this . baseUrl } ${ ruleId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param ruleId {String}
 @param {Object} queryParams Map of query parameters to add to this request
 @param {String} [queryParams.removeUsers]
 @description
 Removes a specific group rule by id from your organization
@param ruleId { String } @param { Object } queryParams Map of query parameters to add to this request @param { String } [ queryParams . removeUsers ] @description Removes a specific group rule by id from your organization