ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing Mongo files
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Deletes a collection from a MongoDB database.
Example
cntMDB is mongoConnection
...
MongoDeleteCollection(cntMDB.Database["CRM"].Collection["product"])
MongoDeleteCollection(gclCollection)
Syntax
<Result> = MongoDeleteCollection(<Collection>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs. ErrorInfo is used to identify the error.
<Collection>: mongoCollection variable
Name of the mongoCollection variable to delete from the MongoDB database.
Related Examples:
Native access to MongoDB Unit examples (WINDEV): Native access to MongoDB
[ + ] This example shows how to use the main functions of native access to MongoDB databases: adding data, reading (searching), modifying and deleting data in the database. The example also shows functions for saving files in the MongoDB GridFS data system.
Component: wd290big.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help