Answer the question
In order to leave comments, you need to log in
How to delete an entry in the database by _id?
There is a database of users.
<form action="/personalList" method="post">
<td><input type="hidden" name="id" value="<%= item._id%>"><input type="submit" value="✖" ></input></td>
</form>
personal.remove({_id: req.body.id})
personal.remove({_id: req.body.id}, (err, results) => {
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question