File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ of ``'my_file'``:
411
411
Delete Files
412
412
------------
413
413
414
- Use the ``MongoDB\GridFS\Bucket::delete()`` method to remove a file's collection
414
+ Use the ``MongoDB\GridFS\Bucket::delete()`` method to remove a GridFS file's collection
415
415
document and associated chunks from your bucket. This effectively deletes the file.
416
416
Pass the ``_id`` value of the file you want to delete as a parameter to the
417
417
``delete()`` method.
@@ -425,7 +425,7 @@ The following example shows you how to delete a file by referencing its ``_id``
425
425
:end-before: end-delete-files-id
426
426
427
427
Alternatively, you can use the ``MongoDB\GridFS\Bucket::deleteByName()`` method
428
- to delete a file and all its file revisions. Pass the ``filename`` value of the
428
+ to delete a GridFS file and all its file revisions. Pass the ``filename`` value of the
429
429
file you want to delete as a parameter to the ``deleteByName()`` method, as shown
430
430
in the following code:
431
431
You can’t perform that action at this time.
0 commit comments