title: Loop through json file and delete key if it matches
body: <p>I have the following structure on a JSON file:</p>
  
  <pre><code>{
    "channels": [
      "180873781382873088",
      "181268808055521280",
      "183484852287307777",
      "174886257636147201",
      "174521530573651968"
    ]
  }
  </code></pre>
  
  <p>I want to know how I can loop through the file searching for a specific string, and delete it if it matches.</p>
  
  <p>Thank you.</p>
  
  <p>EDIT: A Google search pointed me to using a for loop and using the del command to remove the key, so here's what I tried:</p>
  
  <pre><code>channel = "180873781382873088"
  
  for item in data['channels']:
      del channel
  </code></pre>
  
  <p>But it only deletes the variable channel, not the key that matches it's value.</p>