Remove unused devices