// 删除所有符合条件的数据// ret 返回的数据为 {n:3, ok:1, deletedCount:3} 代表删除的数据条数User.remove({username: 'mango'}, (err, ret) => {if (err) {throw err}console.log('删除成功')console.log(ret)})// 根据条件删除一个User.findOneAndRemove(conditons, [options], [callback])// 根据 id 删除一个User.findByIdAndRemove(id, [options], [callback])
