'Delete this all children of this key. Note that a key is not
actually deleted till the last handle to it is closed. Also if you
specify a sub_key, then the sub-key is deleted completely. If sub_key
does not exist, no error is reported.'

def delete_tree(self, sub_key=None):

    RegDeleteTree(self.hkey, sub_key)
