(self, line="")
return
Delete an ontology
            2016-04-11: not a direct command anymore
Delete an ontology
            2016-04-11: not a direct command anymore
Delete an ontology 2016 - 04 - 11 : not a direct command anymore
def _delete_file(self, line=""):
        """	Delete an ontology
            2016-04-11: not a direct command anymore """

        if not self.all_ontologies:
            self._help_nofiles()

        else:
            out = []
            for each in self.all_ontologies:
                if line in each:
                    out += [each]
            choice = self._selectFromList(out, line)
            if choice:
                fullpath = self.LOCAL_MODELS + "/" + choice
                if os.path.isfile(fullpath):

                    self._print("--------------")
                    self._print("Are you sure? [Y/N]")
                    var = input()
                    if var == "y" or var == "Y":
                        os.remove(fullpath)
                        manager.del_pickled_ontology(choice)
                        self._print("<%s> was deleted succesfully." % choice)
                        self.all_ontologies = manager.get_localontologies()
                    else:
                        return

                else:
                    self._print("File not found.")
                # delete
                if self.current and self.current['fullpath'] == fullpath:
                    self.current = None
                    self.currentEntity = None
                    self.prompt = _get_prompt()

        return
def _delete_file ( self , line = "" ) : if not self . all_ontologies : self . _help_nofiles ( ) else : out = [ ] for each in self . all_ontologies : if line in each : out += [ each ] choice = self . _selectFromList ( out , line ) if choice : fullpath = self . LOCAL_MODELS + "/" + choice if os . path . isfile ( fullpath ) : self . _print ( "--------------" ) self . _print ( "Are you sure? [Y/N]" ) var = input ( ) if var == "y" or var == "Y" : os . remove ( fullpath ) manager . del_pickled_ontology ( choice ) self . _print ( "<%s> was deleted succesfully." % choice ) self . all_ontologies = manager . get_localontologies ( ) else : return else : self . _print ( "File not found." ) # delete if self . current and self . current [ 'fullpath' ] == fullpath : self . current = None self . currentEntity = None self . prompt = _get_prompt ( ) return