Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-383

Need Function to Remove a File from a GRID File System

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 0.96.4
    • Component/s: None
    • Labels:
      None

      In the 0.8x C Driver, one could remove all files with a given file name from a GRID file system using the function gridfs_remove_filename(). AFAICT the 0.9x C Driver does not provide any function for removing a file from a GRID file system. The only way to remove such a file with the 0.9x driver is to call mongoc_collection_remove() to remove the entry for the file from the "files" collection and each chunk for this file in the "chunks" collection.

      The need to remove a file from a file system is almost as important as the ability to add a file. The C Driver should have a function for doing this.

            Assignee:
            christian.hergert@10gen.com Christian Hergert
            Reporter:
            fatherbrain Frank J. Lhota
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: