You can use the deleteMany
method:
db.getCollection('collection-name').deleteMany(
{
'externalId': {
'$in': [
'224844936430',
'224844978951'
]
}
}
)
References:
You can use the deleteMany
method:
db.getCollection('collection-name').deleteMany(
{
'externalId': {
'$in': [
'224844936430',
'224844978951'
]
}
}
)
References: