deleteIdentityProviderKey(keyId) {
    if (!keyId) {
      return Promise.reject(new Error('OKTA API deleteIdentityProviderKey parameter keyId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/idps/credentials/keys/${keyId}`;

    const resources = [
      `${this.baseUrl}/api/v1/idps/credentials/keys/${keyId}`
    ];

    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
/**
   *
   * @param keyId {String}
   * @description
   * Deletes a specific IdP Key Credential by `kid` if it is not currently being used by an Active or Inactive IdP.
   */
@param keyId {String}
@description
Deletes a specific IdP Key Credential by `kid` if it is not currently being used by an Active or Inactive IdP.
@param keyId { String } @description Deletes a specific IdP Key Credential by ` kid ` if it is not currently being used by an Active or Inactive IdP .
deleteIdentityProviderKey(keyId) {
    if (!keyId) {
      return Promise.reject(new Error('OKTA API deleteIdentityProviderKey parameter keyId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/idps/credentials/keys/${keyId}`;
    const resources = [
      `${this.baseUrl}/api/v1/idps/credentials/keys/${keyId}`
    ];
    const request = this.http.delete(
      url,
      null,
      { resources }
    );
    return request;
  }
deleteIdentityProviderKey ( keyId ) { if ( ! keyId ) { return Promise . reject ( new Error ( 'OKTA API deleteIdentityProviderKey parameter keyId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ keyId } ` ; const resources = [ ` ${ this . baseUrl } ${ keyId } ` ] ; const request = this . http . delete ( url , null , { resources } ) ; return request ; }
@param keyId {String}
 @description
 Deletes a specific IdP Key Credential by `kid` if it is not currently being used by an Active or Inactive IdP.
@param keyId { String } @description Deletes a specific IdP Key Credential by ` kid ` if it is not currently being used by an Active or Inactive IdP .