title: Delete Record from JSON Object Javascript
body: <p>If I have the filename and want to delete an entire record 
  for example filename 3.jpg I want to delete the entire record for that filename. how do I do that?
  a bit more specifics is I want to remove this record 
  {
          "status": "success",
          "filename": "3.jpg",
          "mainpic": "false",
          "fullurl": "../userimages/5c49c449-50b4-43e4-b218-5913b59bd994.jpg"
      },</p>
  
  <pre><code>[
  {
      "status": "success",
      "filename": "1.jpg",
      "mainpic": "false",
      "fullurl": "../userimages/f0380e08-18de-4fdb-80a2-a912809bda97.jpg"
  },
  {
      "status": "success",
      "filename": "2.jpg",
      "mainpic": "false",
      "fullurl": "../userimages/7a4362c8-c9c5-48ee-8672-c332eae59f37.jpg"
  },
  {
      "status": "success",
      "filename": "3.jpg",
      "mainpic": "false",
      "fullurl": "../userimages/5c49c449-50b4-43e4-b218-5913b59bd994.jpg"
  },
  {
      "status": "success",
      "filename": "eb0b4954-342c-4c3b-87fe-4744511c1b80.jpg",
      "mainpic": "false",
      "fullurl": "../userimages/eb0b4954-342c-4c3b-87fe-4744511c1b80.jpg"
  },
  {
      "status": "success",
      "filename": "e23ce9e8-5062-41d4-8aea-d11aa795ac45.jpg",
      "mainpic": "true",
      "fullurl": "../userimages/e23ce9e8-5062-41d4-8aea-d11aa795ac45.jpg"
  },
  {
      "status": "success",
      "filename": "d6343604-e6eb-4caa-82bf-2b5c2b346f71.jpg",
      "mainpic": "false",
      "fullurl": "../userimages/d6343604-e6eb-4caa-82bf-2b5c2b346f71.jpg"
  },
  {
      "status": "success",
      "filename": "9768f36a-61b8-4f15-995c-28e38dfe48ad.JPG",
      "mainpic": "false",
      "fullurl": "../userimages/9768f36a-61b8-4f15-995c-28e38dfe48ad.JPG"
  }
  </code></pre>
  
  <p>]</p>