I can delete edge predicate but not the node itself with curl... json... mutate?commitNow=true

Do this:

curl -X POST localhost:8080/alter -d \
'name: string @index(term) .
  type Person {
	 name: String
  }'

But add the type in the mutation

{
    "set": [
    {
        "name": "Alice",
        "dgraph.type": "Person"
    },
    {
        "name": "Bob",
        "dgraph.type": "Person"
    }
    ]
}