title: Swagger Custom Tag Removal Python
body: <p>I have a swagger json file. Sample :</p>
  <pre><code>{
    &quot;swagger&quot;: &quot;2.0&quot;,
    &quot;tags&quot;: [
    {
      &quot;name&quot;: &quot;Tag1&quot;
    },
    {
      &quot;name&quot;: &quot;Tag2&quot;
    },
    {
      &quot;name&quot;: &quot;Tag3&quot;
    },
    {
      &quot;name&quot;: &quot;Tag4&quot;
    }
  ],
  &quot;paths&quot;: {
    &quot;/api/v1/entities/{entityId}/status&quot;: {
      &quot;post&quot;: {
        &quot;tags&quot;: [
          &quot;Tag1&quot;,
          &quot;Tag3&quot;
        ],
        .
        .
        .
      }
      &quot;get&quot;: {
        &quot;tags&quot;: [
          &quot;Tag1&quot;,
          &quot;Tag3&quot;
        ],
        .
        .
        .
      }
    },
    &quot;/api/v1/entities&quot;: {
      &quot;post&quot;: {
        &quot;tags&quot;: [
          &quot;Tag2&quot;,
          &quot;Tag3&quot;
        ]
        .
        .
        .
      }
    }
  }
  </code></pre>
  <p>I want to remove tags which are present in a list eg: [&quot;Tag3&quot;, &quot;Tag5&quot;] from both the top-level tags list and all the individual paths as well, wherever present.</p>