Delete Single Document
On this page
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 icon.
![Delete button in List view](/docs/compass/master/static/486b946c5f81e91edc7d84bdbabd46b5/c0104/delete-doc.webp)
After you click the delete button, the document is flagged for deletion. Compass asks for confirmation that you want to remove the document.
Note
JSON View is available starting in Compass 1.20.
To delete a document, hover over the document and click the icon.
![Delete button in JSON view](/docs/compass/master/static/4b4f75b1c7592479606d055af0c8ec16/de86a/delete-doc-json.webp)
After you click the delete button, the document is flagged for deletion. Compass asks for confirmation that you want to remove the document.
To delete a document, hover over the document and click the icon.
![Delete button Table view](/docs/compass/master/static/cf2dbe1be1bf1650600179f8a62be2cd/c8245/table-view-delete.webp)
After you click the delete button, the document is flagged for deletion. Compass asks for confirmation that you want to remove the document.
Once you confirm, Compass deletes the document from the collection.
Delete Multiple Documents
You can use the bulk delete operations workflow to delete multiple documents in Compass. For details, see Delete Multiple Documents.
Note
You can also use the db.collection.deleteMany() method in the embedded MongoDB Shell to delete multiple documents in a single operation.