Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

delete multiple documents at once mongodb atlas

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?

like image 808
user8463989 Avatar asked Feb 05 '19 17:02

user8463989


1 Answers

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

like image 55
Sam Ulloa Avatar answered Oct 17 '22 18:10

Sam Ulloa