dataset.record.delete
Note
This document has been machine translated.
Deletes a record from the dataset.
Parameters
- dataset_name (
string): The name of the dataset. - condition (
condition): The deletion condition.
Return Value
The number of records deleted from the dataset is returned.
Example
Request Data
{
"id": 1,
"jsonrpc": "2.0",
"method": "dataset.record.delete",
"params": {
"dataset_name": "my_dataset",
"condition": {
"<>": ["id", 2]
}
}
}
Request Execution
curl -H "Content-type: application/json" \
-H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
-H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
-X POST -d "@request.json" \
https://localhost/api/v2/dataset/jsonrpc
Response
{
"result": 2,
"id": 1,
"jsonrpc": "2.0"
}