const {ObjectID} = require('mongodb'); const {mongoose} = require('./../server/db/mongoose'); var {Todo} = require('./../server/models/todo'); Todo.remove({}).then((result) => { console.log(result); }) Todo.findByIdAndRemove('5a20d2583ddedb1c41bda7dc').then((result) => { console.log(result); })