removeKey(userId) {
    var tableRows = this.getElement().querySelectorAll('tr');
    tableRows = goog.array.filter(tableRows, function(row) {
      return row.textContent.indexOf(userId) > -1;
    });

    var uidElems = goog.array.filter(
        this.getElementsByClass(constants.CssClass.KEY_UID), function(elem) {
          return elem.textContent == userId;
        });

    goog.array.forEach(uidElems, function(elem) {
      var parentRow =
          this.getParentTableRow_(/** @type {!HTMLElement} */ (elem));
      parentRow.parentElement.removeChild(parentRow);
    }, this);

    if (this.getElement().querySelectorAll('tr').length == 0) {
      goog.soy.renderElement(
          this.getElement().querySelector('table'), templates.noneEntry,
          {'noneLabel': chrome.i18n.getMessage('keyMgmtNoneLabel')});
    }
    this.keyringMgmtControls_.refreshOptions();
  }
Removes a PGP key from the UI.
@param {string} userId The ID of the PGP key to remove.