MONGOC_CLIENT...ION_DELETE_KEY(3)
π MONGOC_CLIENT...ION_DELETE_KEY(3) π
okay so bestie, welcome to the libmongoc manual β yes the header said MONGOC_CLIENT...ION_DELETE_KEY(3) and yes it's truncated and no we're not gonna worry about it, it's giving mysterious β¨
This one's all about yeeting a key out of your key vault, and honestly? Iconic behavior. Let's get into it π«Ά
β¨ SYNOPSIS β¨
bool
mongoc_client_encryption_delete_key (
mongoc_client_encryption_t *client_encryption,
const bson_value_t *keyid,
bson_t *reply,
bson_error_t *error);
π DESCRIPTION π
So like β this function deletes a key document sitting in the key vault collection, specifically the one that matches the keyid you hand it. That's it. That's the whole vibe. Gone, deleted, no cap π
πΈ PARAMETERS πΈ
client_encryptionβ amongoc_client_encryption_t. Your little encryption bestie, the one doing the work πkeyidβ the UUID of the key you wanna delete, and heads up, it has to be BSON binary subtype0x04. Not negotiable, that's the spec π¦replyβ a maybe-NULL pointer to overwritable storage for abson_tthat'll hold the results. Maybe-NULL!! So you can pass NULL, or you can pass somewhere for the results to land. Your call, main character πerrorβ optional. It's abson_error_t. Only swing by if you like knowing what went wrong π
π RETURNS π
- Returns
trueif it worked. Slay β¨ - Returns
falseand setserrorotherwise. So like, check yourerror, bestie, it's literally right there π
π SEE ALSO π
mongoc_client_encryption_tmongoc_client_encryption_create_datakey()
β AUTHOR β
MongoDB, Inc β the ones who made this whole thing happen, periodt π₯
π COPYRIGHT π
2009-present, MongoDB, Inc.
ngl, the key insight (pun fully intended, iykyk) is thatkeyidmust be subtype0x04β get that wrong and it's not gonna go how you want π
okay that's the whole page, love u, go delete some keys responsibly π§
libmongoc 2.5.6 β Oct 09, 2026 β mwah, that's a wrap, see u in the next manpage ππ
π¦ 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