Q. What does db.collection.drop() do?

A
Removes documents
B
Drops the collection
C
Updates data
D
Creates an index
Solution:

db.collection.drop() deletes a collection and its data.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!