Delete password predicate


(Gvensan) #1

How do I delete an attribute of type dgraph.password.

A JSON delete request

{
  "delete": [
    {
      "uid": "0x757a"
    }
  ]
}

returns success when executed via Ratel UI. But the object seem to exist when viewed via explorer as well as the scheme Sample & Statistics.

Any suggestion? Thx


(Michel Conrado) #2

What version are you using?

This operation, the way you’re writing will delete the whole node.
To be able to delete any node you must add the Type definitions
https://docs.dgraph.io/query-language/#type-system

To be clear, are you using Dgraph’s password type or creating a password approach yourself?

https://docs.dgraph.io/query-language/#password-type


(Gvensan) #3

Thanks - the pointer around the Type helped.

I am using v1.1.0. I ended up using setDelNquads with

* * .

It worked.