code: public static void removeAll(Document document) {
          List<String> elementsId = null;
  
          elementsId = getElementsId(document);
  
          removeAll(elementsId);
      }
docs: Removes all queries in the XML file from the Repository
  
  @param document document which would be used as source for query names to remove from repository