Class | Mongoid::Persistence::Operations::Remove |
In: |
lib/mongoid/persistence/operations/remove.rb
|
Parent: | Object |
Remove is a persistence command responsible for deleting a document from the database.
The underlying query resembles the following MongoDB query:
collection.remove( { "_id" : 1 }, false );