Delete variables which we no longer used

OS (e.g. Win10): Mac
PsychoPy version (e.g. 1.84.x): 2024.2.1
Standard Standalone? (y/n) yes

Hi,
We are customising Iowa Gambling Task with several code blocks, and adding and deleting some variables through a lot of trials and errors.
Every time I create some new variables, the builder successfly reflects them on the JS output but it doesn’t seem to delete the variable which I deleted on the builder.
The final output contains a lot of junk variables and Chrome always tells me such warnings.

  1. Is it OK to delete them manually from the js file in terms of compatibility?
  2. Is there any specific ways to tell the builder which variables are supposed to be deleted?

What do you mean by deleting a variable on the builder?

I would not recommend editing the .js code directly.

There are ways to remove some variables, but setting keyboard components to store none and unticking saving start and end times. Also loops can have “is trials” unticked to reduce the number of rows created by the loops.

However, in general the PsychoPy approach is that you should ignore variables you don’t need later rather than trying not to have them saved at all.