MongoDB – Drop Collection:

In this tutorial, we will learn about how to drop a collection in MongoDB. In mongoDB, we can drop collections by using the below syntax.

Example:

Use the test database and verify the already existing collections in your DB.

Drop the collection imongo and verify if the deleted collection existing or not.