title: Is there an automated tool for removing occurrences of a variable?
body: <p>I am looking for an automated tool which can alter the code based on certain conditions. Do we have any tool for removing all occurrences of a given variable in a git repo?</p>
  <p>Before</p>
  <pre><code>if(isAccepted) { 
     print(&quot;hello&quot;);
  } else {
     print(&quot;world&quot;);
  }
  </code></pre>
  <p>After</p>
  <pre><code>print(&quot;world&quot;);
  </code></pre>