MongoGridFS
在线手册:中文 英文
PHP手册

MongoGridFS::remove

(PECL mongo >=0.9.0)

MongoGridFS::removeRemoves files from the collections

说明

public bool MongoGridFS::remove ([ array $criteria = array() [, array $options = array() ]] )

参数

query

The filename or criteria for which to search.

options

Options for the remove. Valid options are:

  • "safe"

    Check that the remove succeeded.

返回值

Returns if the removal was successfully sent to the database.


MongoGridFS
在线手册:中文 英文
PHP手册
PHP手册 - N: Removes files from the collections

用户评论:

fhagard at lightcube dot us (08-Apr-2010 02:58)

To ensure that a remove occurred successfully use MongoDB::lastError(). Currently MongoGridFS::remove will return even if the remove failed.