'Remove the specified terminal from this Node. May specify either the
terminal\'s name or the terminal itself.
Causes sigTerminalRemoved to be emitted.'

def removeTerminal(self, term):

    if isinstance(term, Terminal):
        name = term.name()
    else:
        name = term
        term = self.terminals[name]
    term.close()
    del self.terminals[name]
    if (name in self._inputs):
        del self._inputs[name]
    if (name in self._outputs):
        del self._outputs[name]
    self.graphicsItem().updateTerminals()
    self.sigTerminalRemoved.emit(self, term)
