sync() cat = dmd.Devices.componentSearch while len(cat): for b in cat(): cat.uncatalog_object(b.getPath()) dmd.Devices.reIndex() commit()