collection.drop

Mongo documentation

Drop the collection from the database, removing it permanently. New accesses will create a new collection.

Arguments

  1. [callback] (function)

Returns

A promise

Example

users.drop()

results matching ""

    No results matching ""