- Reference >
- Database Commands >
- Administration Commands >
- drop
drop¶
-
drop¶ The
dropcommand removes an entire collection from a database. The command has following syntax:The
mongoshell provides the equivalent helper method:Note that 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.