Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2835

remove() without query no longer allowed

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.2
    • mongodb-2.6
    • manual

    Description

      On http://docs.mongodb.org/master/tutorial/remove-documents/ 2.6 version it says that remove() removes all documents from a collection.

      This was changed recently, shell/collection.js line 218 so calling remove() without a query is not allowed. dan@10gen.com I assume that is the intended behavior, saw your tag on the commit.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            andreas.nilsson Andreas Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 49 weeks, 5 days ago