// Connect to your MongoDB database use sample; // Replace 'myDatabase' with your database name // Define the collection name const collectionName = "myCollection"; // Drop the collection if it exists ...