There is currently no way to mass remove unused variables. You can see if a workflow variable is in use under details(see below), to help find variables that are unused. Just to understand, is there a reason you need to declare all the variables before use?
Hello Leighburke,
I am aware of the details section of the variable that shows if it is used and gives an option to delete it. In my case, I did not declare the variables ahead of time, but somewhere down the line, my workflow design changed a bit which rendered the previously declared and used variables redundant. There were quite a few of these and deleting them one by one did no seem practical and thought there should be a better way or some kind of built-in intelligence within NWC for handling it.
Regards,
Smita
@smita Thank you for the additional detail, I will raise this internally for you but it not a feature on our near-term roadmap. You could also raise this on our uservoice(https://nintex.uservoice.com). Thank you again for your feedback.