MONGOC_GRIDFS_...VE_BY_FILENAME(3)
okay so bestie, youβre on the libmongoc page for MONGOC_GRIDFS_...VE_BY_FILENAME(3) β the actual function is mongoc_gridfs_remove_by_filename. Itβs giving βdelete every GridFS file with this name,β and honestly? iconic. π«Ά
β¨ SYNOPSIS β¨
bool
mongoc_gridfs_remove_by_filename (mongoc_gridfs_t *gridfs,
const char *filename,
bson_error_t *error);
π PARAMETERS π
gridfsβ amongoc_gridfs_t. Thatβs your GridFS handle, bestie.filenameβ a UTF-8 encoded string containing the filename. Keep it UTF-8, okay?errorβ an optional location for abson_error_torNULL. If you donβt need the error tea,NULLis there.
π¦ DESCRIPTION π¦
This one removes all files matching filename β and their data chunks too β from the MongoDB server. Not a little sample, not one file: every match plus all the chunk data, periodt. π
πΈ RETURNS πΈ
Returns true if successful, including when no files match (empty result is still valid, no cap). Returns false and sets error if there are invalid arguments or a server or network error. π
π₯ ERRORS π₯
Errors are propagated via the error parameter. Thatβs the whole flow.
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
okay bye bestie π β libmongoc version 2.5.6, dated Oct 09, 202 (the footer is clipped exactly like that in the source; Iβm not out here inventing digits). byeee β¨
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms