Changing from Immediate to On demand

I have a question about repos. I would like to save some space on my foreman machines by making the repos “on demand” and not the immediate that they currently are. If I change them to on demand how would I clear the rpms from foreman so it can redownload as needed?

You can’t do that unfortunately. I mean, nobody tried that most likely, dig in the Pulp codebase and if you find a way then report back please.