How to remove temporary MapReduce collections in mongoDB

In any case, can I delete all temporary cards that reduce collections? i read you can pass the boolean parameter to save or delete collections. ut parameter for the shell, and I use java drivers. Therefore, I cannot delete the collection after completing the request. Is there a shell command to delete all?

db.collections.help() 

does not contain any commands related to this.

Below is a sample of the collections that I have.

 tmp.mr.mapreduce_1289483912_1 tmp.mr.mapreduce_1289483918_2 tmp.mr.mapreduce_1289483919_3 tmp.mr.mapreduce_1289483974_4 tmp.mr.mapreduce_1289483977_5 tmp.mr.mapreduce_1289484057_6 tmp.mr.mapreduce_1289484058_7 tmp.mr.mapreduce_1289484147_8 tmp.mr.mapreduce_1289484148_9 tmp.mr.mapreduce_1289541146_10 tmp.mr.mapreduce_1289541150_11 tmp.mr.mapreduce_1289542389_12 tmp.mr.mapreduce_1289542390_13 tmp.mr.mapreduce_1289543164_14 tmp.mr.mapreduce_1289543165_15 
+6
mongodb document mapreduce temporary
source share
1 answer

They must be removed when closing the database connection. For more information, see the Answers to this question and how to remove them manually.

+6
source share

All Articles