Another option is to fix the variable to 0 by setting its lower and upper bounds to 0.
Or, if you not only remove variables but add some at the same time, maybe just change the meaning of an existing variable that had been "deleted" before? That is cumbersome but at least avoids the growth in model size that you get by just fixing deleted variables to 0.
#CPLEXOptimizers#DecisionOptimization