delete of old resources optimized