I'm trying to delete a node composed of many children in Firebase realtime-database.
I created this little function which is working but not when there are too many children :
def delete_node_firebase(node):
node_val = db.child(node).get().val()
for k, v in node_val.items():
db.child(node).child(k).remove()
When I'm doing a call on a node with a lot of children (in my case more than 20000), this error appears :
"error" : "Data to write exceeds the maximum size that can be modified with a single request.
Does someone know a solution for this please ?