To atomically delete an inline document using only the parent id and child identifier, you can do this:
Feed.pull(feed.id, :stories => {:_id => story.id})
If you already have a parent document, you can do this instead:
feed.pull(:stories => {:_id => story.id})
Now I feel awkward asking a question (and answering it). It is pretty simple.
source
share