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

Start learning →

delete (1) of (list) — Scratch Block Guide

📌 What you will learn

Removes the item at the given 1-based index and shifts later items up by one slot.

What this block does

Removes the item at the given 1-based index and shifts later items up by one slot.

Remove used items from an inventory or draw non-repeating cards from a deck.

  • Category: Variables & Lists
  • Key tip: When deleting inside a loop, watch out for shifted indices!

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 (1) of (list)
  1. When green flag clicked
  2. Delete 1 of deck

Try it: Removes the top card so the old item #2 becomes the new item #1.

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 (1) of (list)" in Scratch?

Remove used items from an inventory or draw non-repeating cards from a deck. When deleting inside a loop, watch out for shifted indices!

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.