I want to bulk update and bulk delete documents
This feature is available starting in Compass version 1.42
-
Jared Alessandroni commented
This seems like a real no-brainer - and it's a weird omission _especially_ since you allow dropping a collection so it's not like a training wheels thing.
-
Mani commented
Its good to give the checkbox against each row and do the bulk delete
-
Mani commented
I want to post this idea, I am using MongoDB compass, it certainly is easy but it would be so nice to have a check box next to tabular form of results and give them delete in one go for clearing the preprod environment from failed transactions.
-
Felicia commented
@leonid I was expanding upon a previous comment that mentioned the mongosh feature, which can be hard to find in Compass since it's new. I was trying to be helpful to those who may want to use that option until bulk delete is implemented in the GUI. I hope you remember for next time that there are varying levels of Compass users.
-
Leonid commented
There is no point in saying that something can be done via MongoSH/CLI/CLI-like tools. Anything can be done via CLI, but what is the point of having GUI then?
-
Felicia commented
This has been implemented in the embedded mongo shell. Please click on the thin bar at the bottom of Compass UI after you connect that says, ">_MONGOSH BETA".
To bulk delete, run the db.collection.deleteOne() or db.collection.deleteMany() command. -
Herbert commented
They just released a feature that may helps you. at least it solves to me. The terminal (MongoSH) feaure that you can access using the bottom bar.
-
Toshi commented
Please consider to add bulk-delete feature first, because bulk update sounds a bit more complicated to implement than bulk deletion, which should be much easier to add.
The Compass app is very useful in the prototyping stage. And when you prototype, you often add a lot of dummy data.
Just checking ✔ for such documents and delete them with one click, that will be great.
-
Robert commented
This is a key feature. Most of my colleagues are using Studio 3T due this this feature.
-
Eric commented
When I query documents, It would be good to be able to delete them all, instead of having to delete them one by one (very long if you have 100 docs for example)