'Removes a text decoration from the editor.
:param decoration: Text decoration to remove
:type decoration: spyder.api.TextDecoration'

def remove(self, decoration):

    try:
        self._decorations.remove(decoration)
        self.editor.setExtraSelections(self._decorations)
        return True
    except ValueError:
        return False
