title: ANGULARJS search in array element and remove corresponding data from the array
body: <p>I am using angularjs. My json is </p>
  
  <pre><code>[
    {
      "Workflow_version_id": 1,
      "data": {
        "Workflow_version_id": 1,
        "workflow_id": 1,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    },
    {
      "Workflow_version_id": 2,
      "data": {
        "Workflow_version_id": 2,
        "workflow_id": 2,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    },
    {
      "Workflow_version_id": 3,
      "data": {
        "Workflow_version_id": 3,
        "workflow_id": 3,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    },
    {
      "Workflow_version_id": 4,
      "data": {
        "Workflow_version_id": 4,
        "workflow_id": 5,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    }
  ]
  </code></pre>
  
  <p>i just want to search whole json is contains or having the node <code>Workflow_version_id</code> and <code>value 2</code> . if the value is presented the i want to remove the <strong>data</strong> for the same .eg
  if  my current <code>Workflow_version_id is 2</code> the i want to remove the full details for the id 2 </p>
  
  <pre><code>{
      "Workflow_version_id": 2,
      "data": {
        "Workflow_version_id": 2,
        "workflow_id": 2,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    }
  </code></pre>
  
  <p>Then my final json will be like </p>
  
  <pre><code>[
    {
      "Workflow_version_id": 1,
      "data": {
        "Workflow_version_id": 1,
        "workflow_id": 1,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    },
    {
      "Workflow_version_id": 3,
      "data": {
        "Workflow_version_id": 3,
        "workflow_id": 3,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    },
    {
      "Workflow_version_id": 4,
      "data": {
        "Workflow_version_id": 4,
        "workflow_id": 5,
        "version_number": 1,
        "subversion_number": 1,
        "Workflow_definition": 1,
        "published": true,
        "del_flag": true,
        "locked_on": "asdasd",
        "locked_by": "asasas",
        "version_comments": "ASasaaaa"
      }
    }
  ]
  </code></pre>