title: How to delete a property in a JArray?
body: <p>I have a JArray as below, the file property contained a base64 string so it's a big size, how to delete it?</p>
  <pre><code>{ 
    &quot;files&quot;: [
      {
        &quot;filename&quot;: &quot;892a3a3bb7814d67995d4059b278c581.png&quot;,
        &quot;real_filename&quot;: &quot;Logo - Trimmed.png&quot;,
        &quot;filesize&quot;: 42198,
        &quot;filetype&quot;: &quot;image/png&quot;,
        &quot;file&quot;: &quot;xxxx&quot;
      },
      {
        &quot;filename&quot;: &quot;22a3a3bb7814d67995d4059b278c581.png&quot;,
        &quot;real_filename&quot;: &quot;Logo - Trimmed2.png&quot;,
        &quot;filesize&quot;: 42198,
        &quot;filetype&quot;: &quot;image/png&quot;,
        &quot;file&quot;: &quot;xxxx&quot;
      }
    ] 
  }
  </code></pre>
  <p>I have tried below, but it threw me an exception:</p>
  <blockquote>
  <p>Cannot add or remove items from Newtonsoft.Json.Linq.JProperty.</p>
  </blockquote>
  <pre class="lang-cs prettyprint-override"><code>for (int _i = 0; _i &lt; _ja_files.Count; _i++) 
  {
       _ja_files[_i][&quot;file&quot;].Remove();
  }
  </code></pre>