Better way to delete nodes?

I’m running bulk upsert delete with python through this code
def delete_data(client):
# Create a new transaction.
txn = client.txn()
try:
query1 =""“query all($a: string) {
all(func: eq(name, $a)) {
uid
}
}
“””
variables1 = {’$a’: ‘Node’}
res1 = client.txn(read_only=True).query(query1, variables=variables1)
ppl1 = json.loads(res1.json)

    for person in ppl1['all']:
        #print("Node's UID: " + person['uid'])
        txn.mutate(del_obj=person)
        #print('Node deleted')
    txn.commit()

finally:
    txn.discard()

and it takes me around 3 seconds to delete 10 nodes, 30 to delete 100, 300 to delete 1000.
Is there any faster way for me to delete nodes?

Like this.
image