code: def remove_markables(self,list_mark_ids):
          
          nodes_to_remove = set()
          for markable in self:
              if markable.get_id() in list_mark_ids:
                  nodes_to_remove.add(markable.get_node())
                  #For removing the previous comment
                  prv = markable.get_node().getprevious()
                  if prv is not None:
                      nodes_to_remove.add(prv)
          
          for node in nodes_to_remove:
              self.node.remove(node)
docs: Removes a list of markables from the layer
          @type list_term_ids: list
          @param list_term_ids: list of markable identifiers to be removed