mongodb deleteone by id code example Example: mongodb deleteOne db..deleteOne({name : "John" }) *delete one document with the name john*