Wires.find({'cid': cid}).forEach(function(w) {
      removeWire.call({'wid': w._id});
    });