delete multiple documents at once mongodb atlas

user8463989 picture user8463989 · Feb 5, 2019 · Viewed 8.5k times · Source

I am only to delete one record at a time in Mongodb cloud db (Atlas). I have 60 records to delete and it is painful. I do not see an obvious way to delete multiple records at once. Is there a simple way to do this?

Answer

Sam Ulloa picture Sam Ulloa · Feb 7, 2019

You actually can't bulk delete in MongoDB Atlas. See MongoDB Atlas info on the filter section AKA Data Explorer. However you can run standard queries, like find, remove once you connect to the database using your Atlas credentials.

At the clusters view, click connect on the cluster with the collection you would like to query/modify. Then follow the UI to get your connection string using Mongo Shell. If you need a GUI way to delete, you may consider Mongo Compass. Atlas also provides instructions how to connect via Compass on the same page.

Connect Menu