Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Removing

kchodorow edited this page Sep 14, 2010 · 1 revision

Usage

http://localhost:27080/dbname/cname/_remove

Description

Removes documents from a collection.

Request Type

POST

Optional Arguments

  • criteria=criteria_for_removal (object)
  • safe=bool (1 or 0)

Return Values

{"ok" : 1}

Example

Remove all documents where the “x” field is 2.

$ curl --data 'criteria={"x":2}' 'http://localhost:27080/foo/bar/_remove'
Clone this wiki locally