1Tank.deleteOne({ size: 'large' }, function (err) {
2 if (err) return handleError(err);
3 // deleted at most one tank document
4});
1Remove is deprecated - use delete
2Update for Mongoose v5.5.3 - remove() is now deprecated.
3Use deleteOne(), deleteMany() or findOneAndDelete() instead.