Scan and get all the variables being used in Octopus

Hi Team,
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.

Hi @sujeshsasi,

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.


1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.