Using the MongoDB shell, how do you remove the customer collection and its indexes?

  •  db.customers.remove({}).indexes();
  •  db.customers.remove({});
  •  db.customers.drop();
  •  db.customers.delete();

Leave a Reply

Your email address will not be published. Required fields are marked *