ComponentEntry? delete(String id) { final e = byId.remove(id); if (e != null) _unindex(e); return e; }