# Remove a Document from a Collection

Published 2022-12-03

This tutorial explains to you how you can remove a document from a MongoDB collection.

MongoDB is an open-source (written in C++) document-oriented database and leading NoSQL database.

MongoDB stores data in flexible, JSON-like documents, meaning fields can vary from document to document and data structure can be changed over time

MongoDB is free and open-source, published under the GNU Affero General Public License.

The document model maps to the objects in your application code, making data easy to work with.

Ad hoc queries, indexing, and real time aggregation provide powerful ways to access and analyze your data.

MongoDB is a distributed database at its core, so high availability, horizontal scaling, and geographic distribution are built in and easy to use.

In order to delete (remove) a document from a MongoDB collection you can use a GUI named "Compass":

Click the collection you want to update and after that move the cursor on the document you want to delete (remove). The "delete" icon will appear:

Click on the "delete" icon and you will see the document flagged for deletion:

Click on "DELETE" button and the document will be deleted: