(PECL mongo >=0.9.0)
MongoGridFS::remove — Remove files and their chunks from the database
$criteria = array()
[, array $options = array()
]] ) : bool|array
criteria
The filename or criteria for which to search.
options
An array of options for the remove operations executed against the chunks and files collections. See MongoCollection::remove() for documentation on these options.
Returns an array containing the status of the removal (with respect to the
files collection) if the "w" option is
set. Otherwise, returns TRUE.
Fields in the status array are described in the documentation for MongoCollection::insert().
Generează o excepție MongoCursorException dacă opțiunea "w" este stabilită și înscrierea eșuează.
Generează o excepție MongoCursorTimeoutException dacă opțiunea "w" este stabilită la o valoare mai mare decât unu și operațiunea durează mai mult de MongoCursor::$timeout milisecunde. Aceasta nu va întrerupe operațiunea pe server, este un timeout de partea clientului. Operațiunea din MongoCollection::$wtimeout este în milisecunde.