Navigation

Delete DocumentsΒΆ

Important

Deleting documents is not permitted in MongoDB Compass Readonly Edition.

Select the appropriate tab based on whether you are viewing your documents in List, JSON, or Table view:

To delete a document, hover over the document and click the trash icon icon.

../../_images/delete-doc.png

After you click the delete button, the document is flagged for deletion. Compass asks for confirmation that you want to remove the document:

../../_images/delete-doc2.png

Note

JSON View is available in Compass 1.20.

To delete a document, hover over the document and click the trash icon icon.

../../_images/delete-doc-json.png

After you click the delete button, the document is flagged for deletion. Compass asks for confirmation that you want to remove the document:

../../_images/delete-doc-json2.png

To delete a document, hover over the document and click the trash icon icon.

../../_images/table-view-delete.png

After you click the delete button, the document is flagged for deletion. Compass asks for confirmation that you want to remove the document:

../../_images/delete-flag-table-view.png

Once you confirm, Compass deletes the document from the collection.