37.5. Remove

Removing from an index is similar to adding, but can be done by supplying one of the following combinations of arguments:

  • entity
  • entity, key
  • entity, key, value
// completely remove bellucci from the actors index
actors.remove( bellucci );
// remove any "name" entry of bellucci from the actors index
actors.remove( bellucci, "name" );
// remove the "name" -> "La Bellucci" entry of bellucci
actors.remove( bellucci, "name", "La Bellucci" );