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

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

    const resources = [
      `${this.baseUrl}/api/v1/users/${userId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param userId {String}
   * @param {Object} queryParams Map of query parameters to add to this request
   * @param {String} [queryParams.oauthTokens]
   * @description
   * Removes all active identity provider sessions. This forces the user to authenticate on the next operation. Optionally revokes OpenID Connect and OAuth refresh and access tokens issued to the user.
   */
@param userId {String}
@param {Object} queryParams Map of query parameters to add to this request
@param {String} [queryParams.oauthTokens]
@description
Removes all active identity provider sessions. This forces the user to authenticate on the next operation. Optionally revokes OpenID Connect and OAuth refresh and access tokens issued to the user.
@param userId { String } @param { Object } queryParams Map of query parameters to add to this request @param { String } [ queryParams . oauthTokens ] @description Removes all active identity provider sessions . This forces the user to authenticate on the next operation . Optionally revokes OpenID Connect and OAuth refresh and access tokens issued to the user .
clearUserSessions(userId, queryParameters) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API clearUserSessions parameter userId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/sessions`;
    const queryString = qs.stringify(queryParameters || {});
    url += queryString ? ('?' + queryString) : '';
    const resources = [
      `${this.baseUrl}/api/v1/users/${userId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
clearUserSessions ( userId , queryParameters ) { if ( ! userId ) { return Promise . reject ( new Error ( 'OKTA API clearUserSessions parameter userId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ userId } ` ; const queryString = qs . stringify ( queryParameters || { } ) ; url += queryString ? ( '?' + queryString ) : '' ; const resources = [ ` ${ this . baseUrl } ${ userId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param userId {String}
 @param {Object} queryParams Map of query parameters to add to this request
 @param {String} [queryParams.oauthTokens]
 @description
 Removes all active identity provider sessions.
@param userId { String } @param { Object } queryParams Map of query parameters to add to this request @param { String } [ queryParams . oauthTokens ] @description Removes all active identity provider sessions .