def _remove_vars(self):
        """
        Remove hosts/host_vars/group_vars and returns None.

        :returns: None
        """
        for name in ("hosts", "group_vars", "host_vars"):
            d = os.path.join(self.inventory_directory, name)
            if os.path.islink(d) or os.path.isfile(d):
                os.unlink(d)
            elif os.path.isdir(d):
                shutil.rmtree(d)
def _remove_vars ( self ) : for name in ( "hosts" , "group_vars" , "host_vars" ) : d = os . path . join ( self . inventory_directory , name ) if os . path . islink ( d ) or os . path . isfile ( d ) : os . unlink ( d ) elif os . path . isdir ( d ) : shutil . rmtree ( d )
Remove hosts/host_vars/group_vars and returns None.

        :returns: None