HF RL Explorer

Task: Truncate MongoDB Collections Efficiently

Task: Truncate MongoDB Collections Efficiently: a task in Terminal-Lego-15k (Harbor dataset). You are working with a MongoDB database that contains large collections with millions of entries. Your task is to implement a solution that truncates (removes all documents from) collections efficiently…

The task

You are working with a MongoDB database that contains large collections with millions of entries. Your task is to implement a solution that truncates (removes all documents from) collections efficiently while preserving the collection structure and indexes.

Part of PrimeIntellect/Terminal-Lego-15k.