Question: I want to delete/remove a specific item inside my Backbone Model Array. My Model returns this data (json)

```
"data":  {
   "id": 16268,
   "releases":  [
      {"title" :"title1", "cover" : "some image", "releasedate": "some date"},
      {"title" :"title2", "cover" : "some image", "releasedate": "some date"},
      {"title" :"title3", "cover" : "some image", "releasedate": "some date"},
      {"title" :"title4", "cover" : "some image", "releasedate": "some date"},
      {"title" :"title5", "cover" : "some image", "releasedate": "some date"},
  ]
}

```

So, lets say I want to delete/remove the second entry. I tried to do this:

```
if(this.model.get('id') === 16268){
        if(this.model.get('releases')[1]) {
           this.model.remove();
        }
}

```

but with no luck. Can someone tell me how to solve this?

Answer: 
In order to remove element with certain index from array you have to use Array's [`splice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) method.

In order to get `"change"` event fired on your model you can use Model's `set` method in conjunction with Array's [`slice`](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/slice) method which returns a copy of array.

So the code removing array element should look like this:

```
var arr = this.model.get('releases');
arr.splice(1, 1);
this.model.set('releases', arr.slice());

```
Create a "release" model, then add an attribute to your current model that'd be a release collection(backbone collection). After that you can manipulate the collection as you need.

Thanks.