"Remove unused variables" leds to errors in project after removing USED variables

The “Remove unused variables” is not usable and it breaks the project.

After using it, exclamation marks appear in the project. After further inspection, it turns out that it removed variables that are in fact being referenced in activities.




@pere
no it will not remove the variables which are used in the project

check whether the variables are used in the project or not

cheers

Hey @pere ,

There is a bug in remove unused variable option
You are right it sometimes deleted the used variable too.
Please refer below thread for more information

Hope it helps you out!

Yeah don’t use this. It’s broken. Just use Validate Project then if it reports any unused variables, verify manually if they’re used or not and delete them manually if they’re not.

1 Like

Yes it will, that’s the point. It’s broken.

@postwick

Got it thanks for that :blush:

What you mean? Is this for real?

If the makers of this software are aware of sucha a behaviour, that’s gonna strongly break whatever program, why are not they immediately releasing a patch, even if it’s only for disabling the button? Guys, this is no serious to any extent. Are you aware of the harm this causes? Plus I discovered that removing other things, like unused workflows, is not removing all them - I needed several attempts to get rid of all them. At least it’s not erasing the used ones, but OMG!

Can confirm, happens for me as well. Not using this feature, its broken