delete all of (list) — Scratch Block Guide
Empties every item from the list immediately.
What this block does
Empties every item from the list immediately.
Reset temporary game lists on green flag click.
- Category: Variables & Lists
- Key tip: Do not run this on static data lists (like a pre-typed quiz bank) unless your code refills them.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Delete all of scores
Try it: Starts the list completely empty (length 0).
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "delete all of (list)" in Scratch?
Reset temporary game lists on green flag click. Do not run this on static data lists (like a pre-typed quiz bank) unless your code refills them.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.