1

I am new to keystonejs. My question is very generic. How to remove multiple documents from Collection.

tried keystone.list('students').find({'class':'id'}).remove().exec() but its not working. How suppose I shoud do this?

Drew
  • 24,851
  • 10
  • 43
  • 78
Ramesh Murugesan
  • 4,727
  • 7
  • 42
  • 67

1 Answers1

0

Can you try remove directly.

  keystone.list('students').remove({'class':'id'}, function(err){
     if(err) throw err;

});

I home you would have visited this post. Or probably, this question is duplicate of it.

Community
  • 1
  • 1
enRaiser
  • 2,606
  • 2
  • 21
  • 39