code: def remove(self, decoration):
          
          try:
              self._decorations.remove(decoration)
              self.update()
              return True
          except ValueError:
              return False
          except RuntimeError:
              # This is needed to fix issue 9173
              pass
docs: Removes a text decoration from the editor.
  
          :param decoration: Text decoration to remove
          :type decoration: spyder.api.TextDecoration