dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

how to remove a record ? #707

Closed coolneka closed 8 years ago

coolneka commented 8 years ago

seems there is not a method to remove a record ..

leemm commented 8 years ago

It's in the documentation.

Person.find({ surname: "Doe" }).remove(function (err) {
    // Does gone..
});
coolneka commented 8 years ago

thanks ,Ieemm !!