def delete(self, file_id):
        res = self._files.delete_one({"_id": file_id})
        self._chunks.delete_many({"files_id": file_id})
        if not res.deleted_count:
            raise NoFile(
                "no file could be deleted because none matched %s" % file_id)
Given an file_id, delete this stored file's files collection document
dataset/ETHPy150Open mongodb/mongo-python-driver/gridfs/__init__.py/GridFSBucket.delete