Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose remove

const res = await Character.remove({ name: 'Eddard Stark' });
res.deletedCount; // Number of documents removed
Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #mongoose #remove
ADD COMMENT
Topic
Name
9+6 =