label.all

A new array of every label the script has now, oldest first (deleted ones are not in it). Use it without parentheses: label.all.

label.all() -> array<label>

Example

for d in label.all
    label.delete(d)