removeLinkedObjectForUser(userId, relationshipName) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API removeLinkedObjectForUser parameter userId is required.'));
    }
    if (!relationshipName) {
      return Promise.reject(new Error('OKTA API removeLinkedObjectForUser parameter relationshipName is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/linkedObjects/${relationshipName}`;

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

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param userId {String}
   * @param relationshipName {String}
   * @description
   * Delete linked objects for a user, relationshipName can be ONLY a primary relationship name
   */
@param userId {String}
@param relationshipName {String}
@description
Delete linked objects for a user, relationshipName can be ONLY a primary relationship name
@param userId { String } @param relationshipName { String } @description Delete linked objects for a user relationshipName can be ONLY a primary relationship name
removeLinkedObjectForUser(userId, relationshipName) {
    if (!userId) {
      return Promise.reject(new Error('OKTA API removeLinkedObjectForUser parameter userId is required.'));
    }
    if (!relationshipName) {
      return Promise.reject(new Error('OKTA API removeLinkedObjectForUser parameter relationshipName is required.'));
    }
    let url = `${this.baseUrl}/api/v1/users/${userId}/linkedObjects/${relationshipName}`;
    const resources = [
      `${this.baseUrl}/api/v1/users/${userId}/linkedObjects/${relationshipName}`,
      `${this.baseUrl}/api/v1/users/${userId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
removeLinkedObjectForUser ( userId , relationshipName ) { if ( ! userId ) { return Promise . reject ( new Error ( 'OKTA API removeLinkedObjectForUser parameter userId is required.' ) ) ; } if ( ! relationshipName ) { return Promise . reject ( new Error ( 'OKTA API removeLinkedObjectForUser parameter relationshipName is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ userId } ${ relationshipName } ` ; const resources = [ ` ${ this . baseUrl } ${ userId } ${ relationshipName } ` , ` ${ this . baseUrl } ${ userId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param userId {String}
 @param relationshipName {String}
 @description
 Delete linked objects for a user, relationshipName can be ONLY a primary relationship name
@param userId { String } @param relationshipName { String } @description Delete linked objects for a user relationshipName can be ONLY a primary relationship name