code: def remove(self):
          
          for disconnectors in self._disconnectors:
              disconnectors()
          for sel in self.selections:
              self.remove_selection(sel)
          for s in type(self)._keep_alive.values():
              with suppress(KeyError):
                  s.remove(self)
docs: Remove a cursor.
  
          Remove all `Selection`\\s, disconnect all callbacks, and allow the
          cursor to be garbage collected.