public static int clearListInfo(Delegator delegator,String shoppingListId) throws GenericEntityException {
  delegator.removeByAnd("ShoppingListItemSurvey",UtilMisc.toMap("shoppingListId",shoppingListId));
  return delegator.removeByAnd("ShoppingListItem",UtilMisc.toMap("shoppingListId",shoppingListId));
}

public static int clearListInfo ( Delegator delegator , String shoppingListId ) throws GenericEntityException { delegator . removeByAnd ( "ShoppingListItemSurvey" , UtilMisc . toMap ( "shoppingListId" , shoppingListId ) ) ; return delegator . removeByAnd ( "ShoppingListItem" , UtilMisc . toMap ( "shoppingListId" , shoppingListId ) ) ; }
remove all items from the given list .
