def del_by_idx(tree, idxs):
if len(idxs) == <NUM_LIT:0>:<EOL><INDENT>tree['<STR_LIT>'] = None<EOL>tree['<STR_LIT>'] = []<EOL><DEDENT>else:<EOL><INDENT>hidx, tidxs = idxs[<NUM_LIT:0>], idxs[<NUM_LIT:1>:]<EOL>del_by_idx(tree['<STR_LIT>'][hidx][<NUM_LIT:1>], tidxs)<EOL>if len(tree['<STR_LIT>'][hidx][<NUM_LIT:1>]['<STR_LIT>']) == <NUM_LIT:0>:<EOL><INDENT>del tree['<STR_LIT>'][hidx]<EOL><DEDENT><DEDENT>
Delete a key entry based on numerical indexes into subtree lists.