<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -200,6 +200,19 @@ module MongoMapper
         find_some(ids.flatten).each(&amp;:destroy)
       end
 
+      # Calls +destroy+ on any documents for which the provided +conditions+ 
+      # are true. Note that this means your defined +destroy+ call-backs will 
+      # be processed for *each* document found.
+      #
+      # @param [Hash] conditions conditions that define the set of documents 
+      #   you wish to destroy. These conditions are optional. Without them, 
+      #   all of your documents will be destroyed.
+      #
+      # @example With conditions
+      #   Person.destroy_all(:age =&gt; 45) # any Person document whose age is 45
+      # 
+      # @example Without conditions
+      #   Person.destroy_all # destroy ALL Person documents
       def destroy_all(conditions={})
         find(:all, :conditions =&gt; conditions).each(&amp;:destroy)
       end</diff>
      <filename>lib/mongo_mapper/document.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a9bb535d852ab19d6c5b71a876fd09a5c318a986</id>
    </parent>
  </parents>
  <author>
    <name>James Herdman</name>
    <email>james.herdman@gmail.com</email>
  </author>
  <url>http://github.com/collectiveidea/mongomapper/commit/7abd264dbbece8e6a583c28e6b01c29b30fa046f</url>
  <id>7abd264dbbece8e6a583c28e6b01c29b30fa046f</id>
  <committed-date>2009-10-18T17:24:08-07:00</committed-date>
  <authored-date>2009-10-18T17:24:08-07:00</authored-date>
  <message>Documentation for Document.destroy_all</message>
  <tree>3f5bde4962bcabd0fcbc6c9ddf4e49ec936c3cfc</tree>
  <committer>
    <name>James Herdman</name>
    <email>james.herdman@gmail.com</email>
  </committer>
</commit>
