Deletion with upsert is not working

I haven’t ever used the python client, but here is the docs for the upsert syntax:

https://dgraph.io/docs/dql/clients/python/#running-an-upsert-query--mutation