O'Reilly logo
  • Aem A thinks this is interesting:

Notice that the remove() method is different from the drop() method as it will not delete the collection or its indexes. To rebuild your collection with different indexes, it is preferred that you use the drop() method.


Cover of MEAN Web Development


remove() will delete all posts within a collection, whereas drop() will delete the collection with all its indexes