Xbasic
mongo_deleteCollection Function
Syntax
P result = mongo_deleteCollection(C mongoURL_or_connectionString, C databaseName, C collection)
Arguments
- mongoURL_or_connectionStringCharacter
A Mongo AlphaDAO connection string or base URL.
- databaseNameCharacter
The name of the database.
- collectionCharacter
The name of the collection to delete.
Returns
- resultPointer
Returns an object with error (.t./.f.) and errorText properties.
Description
Deletes an entire collection from a MongoDB database.
Example
dim pr as p
pr = mongo_deleteCollection("mongoAtlas", "myDatabase", "tempCollection")See Also