I would like to scan and extract all the variables that is being used by our projects, we would like to check if any variables are not being used and delete the same. Could you please let me know if you have a script which can do this and also it should be via API. Please check and let me know.
Thanks for getting in touch!
Depending on how you’re using variables, you may run into some difficulties with this one.
You could use a script like this one to check what variables are used within process steps.
However, if you’re using features such as configuration variables or substitute variables in files then it won’t be possible to detect whether those variables are being used or not as the declaration is within the package file rather than stored in Octopus.