when I call
db.collection.remove({\'condition\':\'some condition\'});
This one line will delete all the matching condition documents.
If there are multiple records and you want to delete only first record, then set justOne parameter in remove() method.
Here, you want to delete only 1. Thus, set "justOne" parameter as 1.
db.collection.remove({'condition':'some condition'},1);