code: def directory_remove(self, path):
          
          if not isinstance(path, basestring):
              raise TypeError("path can only be an instance of type basestring")
          self._call("directoryRemove",
                       in_p=[path])
docs: Removes a guest directory if empty.
          
          Symbolic links in the final component will not be followed,
          instead an not-a-directory error is reported.
  
          in path of type str
              Path to the directory that should be removed. Guest path style.