MongoCollection
PHP Manual

MongoCollection::remove

(PECL mongo >=0.9.0)

MongoCollection::removeRemove records from this collection

Description

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

Parameters

criteria

Description of records to remove.

just_one

Remove at most one record matching this criteria.

Return Values

Returns if the command was executed successfully.


MongoCollection
PHP Manual