obsoleteTypeIds.add(rt.getId());
}
inventoryManager.markTypesDeleted(obsoleteTypeIds, true);
// 2) Immediately remove the uninventoried resources by forcing the normally async work to run in-band
new AsyncResourceDeleteJob().execute(null);
// 3) Immediately finish removing the deleted types by forcing the normally async work to run in-band
new PurgeResourceTypesJob().executeJobCode(null);
}
} catch (Throwable t) {