Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MongoDB.GridFS.Close

Closes the GridFS.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 16.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.GridFS.Close"; MongoDBRef )   More

Parameters

Parameter Description Example
MongoDBRef The reference number for the mongo connection. $MongoDB

Result

Returns OK or error.

Description

Closes the GridFS.
Optionally as we do that in the MongoDB.Release function automatically.

See also

Release notes

  • Version 16.3
    • Added GridFS functions for MongoDB functions: MongoDB.GridFS.Close, MongoDB.GridFS.Drop, MongoDB.GridFS.Find, MongoDB.GridFS.FindOne, MongoDB.GridFS.FindOneByFileName, MongoDB.GridFS.GetChunks, MongoDB.GridFS.GetFiles, MongoDB.GridFS.Open, MongoDB.GridFS.Read, MongoDB.GridFS.Remove, MongoDB.GridFS.RemoveByFileName and MongoDB.GridFS.Write.

This function is free to use.

Created 28th May 2026, last changed 28th May 2026


MongoDB.GetUserName - MongoDB.GridFS.Drop