On this page
drop
drop-
The
dropcommand removes an entire collection from a database. The command has following syntax:{ drop: <collection_name> }The
mongoshell provides the equivalent helper methoddb.collection.drop().This command also removes any indexes associated with the dropped collection.
Warning
This command obtains a write lock on the affected database and will block other operations until it has completed.