Reputation: 3130
Sorry - I'm new with Mongo....
I'm using it as storage for logs in my web application. I'd like to run a rake task periodically to delete my scripted automatic site checks.
I can successfully pull the documents with the params of interest:
coll.find("params.from" => "sitecheck").to_a.count
=> 5
However, they won't drop!
coll.remove("params.from" => "sitecheck")
=> true
coll.find("params.from" => "sitecheck").to_a.count
=> 5
I'm sure I'm doing something really stupid.... help would be apprecaited though :)
Upvotes: 0
Views: 604
Reputation: 3130
Figured it out.... I'm using a capped collection. Can't remove from it...
Upvotes: 1