$unset
The $unset operation is used to remove a specific field from a document. When applied, it deletes the field entirely, ensuring it no longer exists in the document. This operation is useful for cleaning up unnecessary or sensitive data from documents without affecting other fields, allowing for flexible data management and field removal.
Last updated