I have been trying to delete a node but nothing seems to be working

I am trying to delete a node but nothing seems to be working. I have this code as shown in the image.
image
I also tried the RDF format.
When I run it, it shows the success message but when I go to query then I see the node right there.

Somebody please tell me what I’m doing incorrectly.

Hi @pbenipal61, This blog might be useful to you in fully understanding how the deletion of the nodes work.

Are you committing the mutation? I just learned this too…

1 Like

I ran that mutation in Ratel UI. Do i still need to commit the mutation somehow ?

Can you share the query that you are running for which you can still see the response? What response do you get and what is your expected response?

@pbenipal61, I wonder that you have not defined type in your schema. Delete (that only specifies UID) will only work if you have type defined in your schema and the nodes that you are deleting have corresponding <dgraph.type> predicate.

2 Likes