It is possible, but it requires a different team. You are looking for the findAndModify command.
If you set the parameters {query: ..., remove: true, new: false} , you will delete one document and return the deleted document.
Some notes:
new is a keyword in many languages, make sure that you have correctly entered the flag text.findAndModify will only work with one document. This is great for removing _id , but not suitable for remote ranges.
Gates vp
source share