Wildcard delete didn't work

{
  delete {
     <0xf11168064b01135b> * * .
  }
}

after run this mutation,only the predicate dgraph.type was deleted。
how to use Wildcard delete?

From the documentation:

If the node S in the delete pattern S * * has only a few predicates with a type defined by dgraph.type , then only those triples with typed predicates are deleted. A node that contains untyped predicates will still exist after a S * * delete mutation.

Does the node with that UID have untyped predicates?

That type of issue makes me think that was a profound bad idea to remove _predicate_ from the core code. Cuz this behavior would never happen.

1 Like

This is a change i never realized… :grimacing:

{
  "data": {
    "name": [
      {
        "creditCode": "",
        "entityName": "testCompany",
        "entityType": "Company",
        "uid": "0xd",
        "dgraph.type": [
          "EtityInfo"
        ]
      },
      {
        "creditCode": "",
        "entityName": "testCompany",
        "entityType": "Company",
        "uid": "0xe",
        "dgraph.type": [
          "EtityInfo"
        ]
      },
      {
        "creditCode": "",
        "entityName": "testCompany",
        "entityType": "Company",
        "uid": "0xf",
        "dgraph.type": [
          "EtityInfo"
        ]
      },
      {
        "creditCode": "",
        "entityName": "testCompany",
        "entityType": "Company",
        "uid": "0x10",
        "dgraph.type": [
          "EtityInfo"
        ]
      }
    ]
  },
  "extensions": {
    "server_latency": {
      "parsing_ns": 82744,
      "processing_ns": 832871,
      "encoding_ns": 64651,
      "assign_timestamp_ns": 684428,
      "total_ns": 1797951
    },
    "txn": {
      "start_ts": 15568
    },
    "metrics": {
      "num_uids": {
        "_total": 24,
        "creditCode": 4,
        "dgraph.type": 4,
        "entityName": 4,
        "entityType": 4,
        "pid": 4,
        "uid": 4
      }
    }
  }
}

that’s the query results,these predicates typed with EtityInfo

type <EntityInfo> {
	creditCode
	entityName
	entityType
	invest
	pid
	branchEntity
}

how can i know the node has untyped predicates

Can you send the complete schema as reported by Ratel?

The data shows a typo.