code: def create_or_clear(self, path, **kwargs):
          
  
          try:
              yield self.create(path, **kwargs)
          except NodeExistsException:
              children = yield self.get_children(path)
              for name in children:
                  yield self.recursive_delete(path + "/" + name)
docs: Create path and recursively clear contents.