If we remove an API path from the config, the now-more-targeted clean operation won't remove the generated code. (It'll remove samples and tests, but not docs and production code.)
Removing a proto from an API should be fine - this is a matter of detecting which directories have previously been generated.