Remove unneeded devices