NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

delete all of (list) — Scratch Block Guide

📌 What you will learn

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.

Example using delete all of (list)
  1. When green flag clicked
  2. 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.

Back to Variables & Lists See the overview and patterns for Variables & Lists. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.