Clear all intermediate data via command line

Is this a bad idea?

for i in {1..1000}; do
cryosparcm cli
"clear_intermediate_results(project_uid=$i,
workspace_uid=None, job_uid=None, always_keep_final=True)"
done

(extra line returns for readability).

I withhold judgment on whether this is a good or bad idea in principle.
Purely from an implementation/syntax (P prefix in the project identifier, quoting, etc) perspective, such an iteration might more conveniently be performed in the icli, where one can more easily prepare (and filter) a list of real project identifiers and quoting (or not, as appropriate) is more straight forward.