PHP Classes

File: vendor/mongodb/mongodb/docs/reference/method/MongoDBGridFSBucket-drop.txt

Recommend this page to a friend!
  Classes of LAGGOUNE Walid   MongoDB Queue PHP Query Execute   vendor/mongodb/mongodb/docs/reference/method/MongoDBGridFSBucket-drop.txt   Download  
File: vendor/mongodb/mongodb/docs/reference/method/MongoDBGridFSBucket-drop.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: MongoDB Queue PHP Query Execute
Query and execute multiple queries using MongoDB
Author: By
Last change:
Date: 4 years ago
Size: 831 bytes
 

Contents

Class file image Download
=============================== MongoDB\\GridFS\\Bucket::drop() =============================== .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\GridFS\\Bucket::drop() Drops the files and chunks collections associated with this GridFS bucket. .. code-block:: php function drop(): void Errors/Exceptions ----------------- .. include:: /includes/extracts/error-driver-runtimeexception.rst Examples -------- .. code-block:: php <?php $database = (new MongoDB\Client)->test; $bucket = $database->selectGridFSBucket(); $stream = fopen('php://temp', 'w+b'); fwrite($stream, "foobar"); rewind($stream); $bucket->uploadFromStream('filename', $stream); $bucket->drop();