(PECL mongo >=0.9.0)
MongoGridFS::remove — Removes files from the collections
$criteria
= array()
[, array $options
= array()
]] )
query
The filename or criteria for which to search.
options
Options for the remove. Valid options are:
"w"
See WriteConcerns. The default value for MongoClient is 1.
Returns if the removal was successfully sent to the database.
fhagard at lightcube dot us (2010-04-08 06:58:49)
To ensure that a remove occurred successfully use MongoDB::lastError(). Currently MongoGridFS::remove will return even if the remove failed.