MongoCollection::insert
MongoCollection::save
MongoCollection
PHP Manual

# MongoCollection::remove

(PECL mongo >=0.9.0)

MongoCollection::remove — Remove records from this collection

### Descripción

public boolean MongoCollection::remove ( array `$criteria` [, boolean `$justOne`= `FALSE` ] )

### Lista de parámetros

`criteria`

  Description of records to remove.

`just_one`

  Remove at most one record matching this criteria.

### Valores retornados

Returns if the command was executed successfully.

MongoCollection::insert
MongoCollection::save
MongoCollection
PHP Manual