clear %list:LIST%
Removes all elements from a list.
clear myList
Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
clear <list>
add %val:EXPR% to %list:LIST% for %scope:EXPR%
remove %val:EXPR% from %list:LIST% for %scope:EXPR%
remove [index] %i:INT% from %list:LIST% for %scope:EXPR%
clear %list:LIST% for %scope:EXPR%
add %val:EXPR% to %list:LIST%
remove %val:EXPR% from %list:LIST%
remove [index] %i:INT% from %list:LIST%
set %list:LIST% at [index] %i:INT% to %val:EXPR%