dataset.record.delete
Note
This document has been machine translated.
Deletes a record from the data set.
Parameters
- dataset_name:
string-- dataset name. - condition:
condition-- Deletion condition.
Return Values
Returns the number of records deleted from the dataset.
Execution 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"
}