This must be trivial, but after 30 minutes reading the manual I can't figure it out (I am a newbie in Latex programming). I see no API for it.
I simply want to clear a list created using etoolbox so I can reuse it again. Now when reusing it, it appends to it. here is MWE
\documentclass[10pt]{book}
\usepackage{etoolbox}
\begin{document}
\forcsvlist{\listadd\mylist}{ 1,2,3 } %make up a list
\begin{enumerate}
\renewcommand*{\do}[1]{\item[] #1}
\dolistloop{\mylist}
\end{enumerate}
% what to do now to clear it? If I do the following, it appends!
\forcsvlist{\listadd\mylist}{ 5,6,7 }
\begin{enumerate}
\renewcommand*{\do}[1]{\item[] #1}
\dolistloop{\mylist}
\end{enumerate}
\end{document}

I think I need to reset a counter or such, but I have no idea which counter or how to tell etoolbox to clear mylist. In Matlab, I would do A=[] for example to clear an array, anything similar in etoolbox?

\renewcommandto clear a list. – Nasser May 19 '16 at 08:28\newcommand\mylist{a,b,c}(but using a token less likely than,to use as the separator so you don't have to worry about the separator appearing in an item) so an empty list is just an empty macro. – David Carlisle May 19 '16 at 08:48