My schema:
type User {
name
username
...
}
name: string @index(hash) .
username: string @index(hash) .
...
I want to delete some user. I want to delete the entire node, not certain values:
{
"delete": [
{ "uid": "0xea61" },
{ "uid": "0xea62" },
{ "uid": "0xea63" }
]
}
It executed successfully:
{
"data": {
"code": "Success",
"message": "Done",
"queries": null,
"uids": {}
},
"extensions": {
"server_latency": {
"parsing_ns": 56093,
"processing_ns": 8551567,
"assign_timestamp_ns": 1495159,
"total_ns": 10167730
},
"txn": {
"start_ts": 560080,
"commit_ts": 560081,
"preds": [
"1-dgraph.type"
]
}
}
}
But it is strange that these data still exist, they have not been deleted. I can still query them:
{
"data": {
"user": [
{
"uid": "0xea61",
"username": "mayun"
},
{
"uid": "0xea62",
"name": "jack",
"username": "mayun"
},
{
"uid": "0xea63",
"name": "jack",
"username": "mayun"
},
{
"uid": "0xea64",
"name": "jack",
"username": "mayun"
}
]
}
}
I use the latest version of dgraph.