_uiRemove(ui, all = false) {
    ui.components.forEach((compToRemove) => {
      let els;
      if (all !== true) els = [_a.doc.querySelector(compToRemove)];
      else els = _a.doc.querySelectorAll(compToRemove);
      els.forEach((el) => {
        try {
          el.remove();
        } catch (err) {
          _a.log("trace", "Ui:_uiRemove", `Could not remove. ${err.message}`)();
        }
      });
    });
  }
Handle incoming _ui remove requests
@param {*} ui Standardised msg._ui property object. Note that payload and topic are appended to this object
@param {boolean} all Optional, default=false. If true, will remove ALL found elements, otherwise only the 1st is removed