Currently the only way to issue deletes for triples like “uid * * .” is through the JSON syntax. If I try to use NQuads its first of all not clear whether I should be setting a target object id or string value, but either way it complains about using * as a target object id or target value. Or perhaps using it as a predicate was the problem. The exception is unclear.
Yes! I’m reporting this as a bug against the dgraph4j DSL not a bug with Dgraph itself. The problem is it appears you can’t specify the RDF deletion format from your step 4 in the DSL and actually execute it. Whether I tried specifying an objectId or a objectValue as * in both cases I got errors when trying to execute the query.
@hherman1 We provide an API function Helpers.deleteEdges to delete predicates for a given uid (node). You could use that or do what it internally does, copying it here -