The delete
command removes records in a table.
This is compatible to the delete
command of the Groonga.
(Document Root)/d/delete
GET
Not supported.
type
of the requestdelete
body
of the requesttype
of the responsedelete.result
{
"table" : "<Name of the table>",
"key" : "<Key of the record>"
}
or
{
"table" : "<Name of the table>",
"id" : "<ID of the record>"
}
or
{
"table" : "<Name of the table>",
"filter" : "<Complex search conditions>"
}
All parameters except table
are optional.
However, you must specify one of key
, id
, or filter
to specify the record (records) to be removed.
They are compatible to the parameters of the delete
command of the Groonga. See the linked document for more details.
This returns an array meaning the result of the operation, as the body
.
[
[
<Groonga's status code>,
<Start time>,
<Elapsed time>
],
<Records are successfully removed or not>
]
This command always returns a response with 200
as its statusCode
, because this is a Groonga compatible command and errors of this command must be handled in the way same to Groonga’s one.
Response body’s details:
0
(Droonga::GroongaHandler::Status::SUCCESS
) : Successfully processed.-22
(Droonga::GroongaHandler::Status::INVALID_ARGUMENT
) : There is any invalid argument.true
:Records were successfully removed.false
:Records were not removed.