Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
yii
mongodb
file
Collection
delete
yii\mongodb\file\Collection::delete PHP Method
Collection Class Documentation
Show file
Open project: yiisoft/yii2-mongodb
delete()
public
method
Deletes the file with given _id.
public
delete
(
mixed
$id
) :
boolean
$id
mixed
_id of the file to find.
return
boolean
whether the operation was successful.
public function delete($id) { $this->remove(['_id' => $id], ['limit' => 1]); return true; }
Collection
createDownload
createUpload
delete
drop
ensureChunkIndexes
ensureFileIndexes
ensureIndexes
find
get
getChunkCollection
getFileCollection
getPrefix
insertFile
insertFileContent
insertUploads
remove
setPrefix