I am using Grakn. I'd like to delete a duplicate entity with the same attribute value (name). This is what I have now:
test> match $p isa person, has name $n; get;
{$p id V4176 isa person; $n "John" isa name;}
{$p id V40968336 isa person; $n "John" isa name;}
I would like to delete the one with id V4176. However if I do the query below, it deletes both entities:
match $p isa person, has name "John"; delete $p;
How do I just delete one of the two?