5.5.15

MongoGridFS::delete

(PECL mongo >=1.0.8)

MongoGridFS::deleteDelete a file from the database

Description

public bool MongoGridFS::delete ( mixed $id )

Parameters

id

_id of the file to remove.

Return Values

Returns if the remove was successfully sent to the database.

add a note add a note

User Contributed Notes 1 note

up
0
mshallop+php-at-gmail-dot-com
14 hours ago
Doc doesn't explicitly state what is returned.

Returns an array:

{
  n => {integer value}  (number of records deleted),
  connectionID => { integer value }
  err => null or error text/code
  ok => 1 or 0
}

Sample output:

{ n : 1, connectionID : 33132, err : null, ok : 1 }
To Top