=================================MongoDB\\GridFS\\Bucket::delete()=================================.. default-domain:: mongodb.. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecolDefinition----------.. phpmethod:: MongoDB\\GridFS\\Bucket::delete() Delete a file and its chunks from the GridFS bucket. .. code-block:: php function delete($id): void
.. include:: /includes/apiargs/MongoDBGridFSBucket-method-delete-param.rstBehavior--------If the files collection document is not found, this method will still attempt todelete orphaned chunks... todo: add examples