deleteUserType(typeId) {
    if (!typeId) {
      return Promise.reject(new Error('OKTA API deleteUserType parameter typeId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/meta/types/user/${typeId}`;

    const resources = [
      `${this.baseUrl}/api/v1/meta/types/user/${typeId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param typeId {String}
   * @description
   * Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users
   */
@param typeId {String}
@description
Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users
@param typeId { String } @description Deletes a User Type permanently . This operation is not permitted for the default type nor for any User Type that has existing users
deleteUserType(typeId) {
    if (!typeId) {
      return Promise.reject(new Error('OKTA API deleteUserType parameter typeId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/meta/types/user/${typeId}`;
    const resources = [
      `${this.baseUrl}/api/v1/meta/types/user/${typeId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
deleteUserType ( typeId ) { if ( ! typeId ) { return Promise . reject ( new Error ( 'OKTA API deleteUserType parameter typeId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ typeId } ` ; const resources = [ ` ${ this . baseUrl } ${ typeId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param typeId {String}
 @description
 Deletes a User Type permanently.
@param typeId { String } @description Deletes a User Type permanently .