Navigation

MongoDB\GridFS\Bucket::drop()

Definition

MongoDB\GridFS\Bucket::drop

Drops the files and chunks collections associated with this GridFS bucket.

function drop(): void

Errors/Exceptions

MongoDB\Driver\Exception\RuntimeException for other errors at the driver level (e.g. connection errors).